On Thu, Apr 27, 2017 at 9:13 AM, Shane Curcuru <[email protected]> wrote:
> Sam Ruby wrote on 4/26/17 12:37 PM:
>> On Wed, Apr 26, 2017 at 11:47 AM, Shane Curcuru <[email protected]> 
>> wrote:
> ...snip...
>>> Macbook:calendar-demo curcuru$ rake server --trace
>>> rake aborted!
>>> LoadError: cannot load such file -- rspec/core/rake_task
> ...snip...
>
> Solved via either `bundle exec ....` or `rake update` to get all the
> gems to redo themselves, I forget which.
>
> The new problem is that running the www/roster tool locally needs a
> *bunch* of different svn *and* git checkouts from repository.yml which
> tool a while to figure out.  But there's one directory I'm stuck on that
> is used by www/roster/main
>
> Air-McShane:whimsy curcuru$ irb
> irb(main):001:0> require 'whimsy/asf'
> => true

Unrelated, but since you have found irb, here is something I have
added to my bash profile.  You might find it handy (obviously adapt
the path):

alias wrb='irb -I $HOME/git/whimsy/lib -r whimsy/asf'

It not only saves you a line of data entry per invocation, it ensures
that you pick up any changes you make to the library itself.


> irb(main):002:0> ASF::Podlings.list
> Exception: Unable to find svn checkout for
> https://svn.apache.org/repos/asf/incubator/public/trunk/content
>         from
> /usr/local/lib/ruby/gems/2.4.0/gems/whimsy-asf-0.0.77/lib/whimsy/asf/svn.rb:60:in
> `find!'
>         from
> /usr/local/lib/ruby/gems/2.4.0/gems/whimsy-asf-0.0.77/lib/whimsy/asf/svn.rb:35:in
> `[]'
>         from
> /usr/local/lib/ruby/gems/2.4.0/gems/whimsy-asf-0.0.77/lib/whimsy/asf/podlings.rb:87:in
> `list'
>
> Question: Where, specifically, can the /content directory live?  I have
> one, but it's not getting found.
>
> ~/.whimsy
> :svn:
> - /Users/curcuru/src/*
>
> Air-McShane:content curcuru$ pwd
> /Users/curcuru/src/asf/incubator/public/trunk/content
> Air-McShane:content curcuru$ ls -la podlings.xml
> -rw-r--r--  1 curcuru  staff  171605 Apr 26 22:11 podlings.xml
>
> It *also* fails if I move this svn checkout to not have the /asf level
> of directories.  What is your .whimsy and tree of actual checkouts?

My current whimsy file doesn't have any svn or git entries.  I have my
/srv directory set up just like the whimsy-vm's, though some of the
paths have symlinks to where the directories actually live.

What that means is the my svn configuration is effectively /srv/svn/*

Here's the svn info of the directory in question:

rubys@rubixb:/srv/svn/incubator-content$ svn info
Path: .
Working Copy Root Path: /srv/svn/incubator-content
URL: https://svn.apache.org/repos/asf/incubator/public/trunk/content
Relative URL: ^/incubator/public/trunk/content
Repository Root: https://svn.apache.org/repos/asf
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 1792869
Node Kind: directory
Schedule: normal
Depth: files
Last Changed Author: johndament
Last Changed Rev: 1792833
Last Changed Date: 2017-04-26 20:50:35 -0400 (Wed, 26 Apr 2017)


You should NOT have mirror the directory structure of svn.  A flat
directory which contains the immediate checkouts required will do just
fine.  You can check out the parent (or ancestor) of a given svn
directory, but having empty directories mimicking the directory
structure won't work.




>>> * Can't get to httpd:
>>>
>>> Macbook:whimsy curcuru$ sudo launchctl load -w
>>> /System/Library/LaunchDaemons/org.apache.httpd.plist
>>> Password:
>>> /System/Library/LaunchDaemons/org.apache.httpd.plist: service already loaded
>>> Macbook:whimsy curcuru$ curl localhost
>>> curl: (7) Failed to connect to localhost port 80: Connection refused
>
> Solved and documented the fix: (mismatched httpd versions and LockFile)
>
> https://github.com/apache/whimsy/blob/master/MACOSX.md#start-apache-httpd

Excellent!

> --
>
> - Shane
>   https://www.apache.org/foundation/marks/resources

- Sam Ruby

Reply via email to