ruby on rails - Passenger No Such File To Load config/environment -


i trying make simple changes old app of mine (rails 3.0.0, ruby 1.8.7) last night , ran number of issues upon deploy. i'm using moonshine handle deploys.

i can run cap deploy without error, following passenger error

no such file load -- /srv/bbratboard/releases/20130409025824/config/environment 

i'm not sure if it's relevant, when ssh box, whole config folder under /srv/bbratboard/current/config empty. design or going wrong in deploy?

a number of people have been able solve adjusting permissions on environment.rb file (https://www.sit.auckland.ac.nz/ruby_on_rails_deployment), i'm not able see on production server.

i can provide details necessary, appreciated app in broken state.

thanks much.

you need files present within config directory. looks cap deploy output shows it deleting release's config directory:

executing "chmod -r -- g+w /srv/bbratboard/releases/20130409032459 && rm -rf -- /srv/bbratboard/releases/20130409032459/system && ln -s -- /srv/bbratboard/shared/system /srv/bbratboard/releases/20130409032459/system && rm -rf -- /srv/bbratboard/releases/20130409032459/log && ln -s -- /srv/bbratboard/shared/log /srv/bbratboard/releases/20130409032459/log && rm -rf -- /srv/bbratboard/releases/20130409032459/pids && ln -s -- /srv/bbratboard/shared/pids /srv/bbratboard/releases/20130409032459/pids && rm -rf -- /srv/bbratboard/releases/20130409032459/config && ln -s -- /srv/bbratboard/shared/config /srv/bbratboard/releases/20130409032459/config"

(look @ end, rm -ff -- /srv/bbratboard/releases/20130409032459/config). although trying symlink config directory shared/config directory (ln -s -- /srv/bbratboard/shared/config /srv/bbratboard/releases/20130409032459/config)

i'm guessing shared/config directory created during cap deploy:setup (based on moonshine docs recommend running before cap deploy). ensure have run cap deploy:setup task beforehand, , check shared/config directory has contents such environment.rb file claims missing.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -