Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes on deploy to stand alone server guide #436

Open
FrankyBoy opened this issue Apr 2, 2015 · 4 comments
Open

Notes on deploy to stand alone server guide #436

FrankyBoy opened this issue Apr 2, 2015 · 4 comments

Comments

@FrankyBoy
Copy link

Hi!

Notes from going through this guide on kubuntu 15.04

  • ruby-bundler is not available via apt-get ... however you can do sudo gem install bundler
  • during bundle-install some package failed as it could not find some ruby-header file even though I had the ruby1.9.1-dev installed ... sadly my system crashed in the meantime (yay virtualbox :P) or I would provide more infos there. Installing package "ruby-dev" fixed the issue.
  • the rake command fell on its nose pretty hard (which is where I am stuck right now) ...
myuser@myuser-VirtualBox:~/kandan$ bundle exec rake db:create db:migrate kandan:bootstrap
rake aborted!
LoadError: cannot load such file -- guard/guard
/var/lib/gems/2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `require'
/var/lib/gems/2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `block in require'
/var/lib/gems/2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in `load_dependency'
/var/lib/gems/2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `require'
/var/lib/gems/2.1.0/gems/guard-spork-1.5.1/lib/guard/spork.rb:2:in `<top (required)>'
/var/lib/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:85:in `require'
/var/lib/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:85:in `rescue in block in require'
/var/lib/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:68:in `block in require'
/var/lib/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:61:in `each'
/var/lib/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:61:in `require'
/var/lib/gems/2.1.0/gems/bundler-1.9.2/lib/bundler.rb:134:in `require'
/home/myuser/kandan/config/application.rb:13:in `<top (required)>'
/home/myuser/kandan/Rakefile:5:in `require'
/home/myuser/kandan/Rakefile:5:in `<top (required)>'
LoadError: cannot load such file -- guard-spork
/var/lib/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:76:in `require'
/var/lib/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/var/lib/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:72:in `each'
/var/lib/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:72:in `block in require'
/var/lib/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:61:in `each'
/var/lib/gems/2.1.0/gems/bundler-1.9.2/lib/bundler/runtime.rb:61:in `require'
/var/lib/gems/2.1.0/gems/bundler-1.9.2/lib/bundler.rb:134:in `require'
/home/myuser/kandan/config/application.rb:13:in `<top (required)>'
/home/myuser/kandan/Rakefile:5:in `require'
/home/myuser/kandan/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)

@miurahr
Copy link
Contributor

miurahr commented May 20, 2015

rake with RAILS_ENV=production may help you.

@FrankyBoy
Copy link
Author

@miurahr then maybe the guide should say so

@scouttyg
Copy link
Member

scouttyg commented Jun 8, 2015

@FrankyBoy My guess is raking with production will just skip the guard/guard process because its a gem in the development/test section of the app, so really this treats the symptom rather than the underlying cause. I think I've got a fix for this, I ran into a similar issue and should have a push to fix this shortly.

@miurahr
Copy link
Contributor

miurahr commented Jul 6, 2015

@scouttyg The guide reffered https://github.com/kandanapp/kandan/blob/master/DEPLOY.md#standalone-server said to make configuration for production. such as

production:
  adapter: postgresql
  host: localhost

It is natural to guide adding RAILS_ENV=production

If the guide intend to lead user to prepare development/test environment, it should do so explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants