Closed grobmeier closed 2 years ago
Did you issue the following command?
echo ":root: ." >.whimsy
The '.whimsy' file should be in the parent directory, i.e. one level above where DOCKER.md is located.
Yes, I did it according to the docs. My folder structure looks like:
-rw-r--r-- 1 cy staff 9B May 17 20:48 .whimsy
drwxr-xr-x 2 cy staff 64B May 16 18:38 cache
drwxr-xr-x 9 cy staff 288B May 18 19:04 gems
drwxr-xr-x 3 cy staff 96B May 16 18:38 mail
drwxr-xr-x 11 cy staff 352B May 16 18:38 subscriptions
drwxr-xr-x 37 cy staff 1.2K May 18 18:43 whimsy
The content of .whimsy is:
:root: .
The problem is that the Rakefile is expecting to find the config under /srv/whimsy/lib; however /srv/whimsy is only set up under docker.
Can you please try editing Rakefile as follows? Thanks!
--- a/Rakefile
+++ b/Rakefile
@@ -108,7 +108,7 @@ end
# This requires Gems such as Wunderbar to have been set up
task :config do
- $LOAD_PATH.unshift '/srv/whimsy/lib'
+ $LOAD_PATH.unshift 'lib'
The Rakefile assumes that it will be run from the directory in which it appears. Indeed it looks for the library sources (which include config) here: https://github.com/apache/whimsy/blob/9b25083909f5c283c03c7af8e7679046e7ec5fae/Rakefile#L10
So it should be OK to make that change for all circumstances. But it would be good to get confirmation that it fixes the issue for you!
@sebbASF - it indeed fixes the issue for me. I could successfully run the command. For your convenience I just created a PR with your proposed change. Thanks a lot for your help!
After a succesful rake docker:update, I wanted to run:
The result is:
Looks I missed to configure something but could not find what it is from here: https://github.com/apache/whimsy/blob/master/DOCKER.md