-
the default index.html does not work well in prodution mode, so do not borther to config that, just delete it and go on.
-
To put things in production mode, do
rails g scaffold items name:string rake db:migrate RAILS_ENV=production rm public/index.html #change route.rb point root to items#index rake assets:precompile sudo service nginx restart
./config/unicorn_init.sh stop