ruby - Rails Bootstrap Devise Cancan Passenger Ubuntu deployment -
i've installed nginx , passenger made them run run rails i'm getting below error in log
connecting database specified database.yml started "/" 111.222.333.444 @ 2013-08-07 19:44:43 +1000 processing homecontroller#index html completed 500 internal server error in 1ms activerecord::statementinvalid (could not find table 'users'): app/controllers/home_controller.rb:3:in `index'
i've run
rake db:migrate rake db:seed
i tried
rake db:migrate rails_env="production" rake db:seed rails_env="production"
but i'm getting same error.
i've tried @ nginx configurations installed via rvmsudo
seems ok. passenger installed using gem
, nginx preloading passenger hence why i'm getting 500 error page rails.
what wrong?
http { passenger_root /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.10; passenger_ruby /usr/local/rvm/wrappers/ruby-2.0.0-p247/ruby; include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; access_log logs/access.log; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; gzip on; server { listen 80; server_name rails_test.dev; passenger_enabled on; root /var/www/rails_test/public; charset utf-8; rails_env production; } passenger_pre_start http://rails_test.dev;
i found answer! issue write permission on tmp/cache folder! found out changing nginx rails_env
value development
hope helps people having similar issues deployment!
Comments
Post a Comment