Giter Club home page Giter Club logo

Comments (5)

sebbASF avatar sebbASF commented on September 4, 2024

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.

from whimsy.

grobmeier avatar grobmeier commented on September 4, 2024

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: .

from whimsy.

sebbASF avatar sebbASF commented on September 4, 2024

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'

from whimsy.

sebbASF avatar sebbASF commented on September 4, 2024

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:

lib_update = Dir['lib/**/*'].map {|n| File.mtime n rescue Time.at(0)}.max

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!

from whimsy.

grobmeier avatar grobmeier commented on September 4, 2024

@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!

from whimsy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.