Tried to setup Rails run on Nginx. Some errors I met are listed here:
RAILS_ENV=production rake secret vi /etc/profile export SECRET_KEY_BASE=`RAILS_ENV=production rake secret`
or to import the ouput directly to config/secrets.yml.
Make sure nodejs has been installed. Remove # before
gem 'therubyracer', platforms: :ruby in the Gemfile
Add the following to your Gemfile, version 1.10.1 not woking:
gem 'multi_json', '1.7.8' bundle update multi_json
go to /public and see if the assets folder is there, if not, open config/environments/production.rb in your application:
config.serve_static_assets = false
set it to
true, or you can use Apache or Nginx to serve the static assets.
gem 'io-console' gem install