There are some inconsistencies when running rails server, rails console and rake db:migrate in production mode. There really should be a standard way to let the rails and rake commands know you want to execute them in production mode. Starting Rails Server in Production Mode Starting Rails Console in Production Mode rake db:migrate in Production [...]
Archive for 'Commands'
In order to clear all of your Rails log files development.log, production.log, server.log and test.log with a rake task, type: This is mainly useful while under development. Be careful with this as it will clear out your production.log file as well!
Use the following at your own risk. Save off your files within your directory somewhere first before running the following command. I’m posting these notes so I can refer back to them. If you want to search and replace a word in all files within a specified directory in Unix, do the following: For example, [...]