What is the difference between starting a wizard and a runines rails server?

I am new to using the Rails wizard diamond. I am running the application on Rails 3.2, Ruby 1.9.3 and Foreman 0.6. I would like to know what happens behind the scenes when I run the wizard. In particular, the difference between starting foreman run rails s and foreman start on my local terminal.

I have already noticed some differences. For example, a worker only works when starting foreman start , and not when starting foreman run rails s . But I would like to know the specifics. Where can I find out more about this, or can someone explain how this works?

+7
ruby foreman
source share
1 answer

See http://ddollar.imtqy.com/foreman/

foreman start used to launch the application directly from the command line. If no additional parameters are passed, the wizard will start one instance of each type of process defined in your Procfile.

foreman run used to run one-time commands using the same environment as your specific processes.

run is useful because your application may depend on environment variables defined in the .env file loaded by the wizard, and which may be present even when a single process starts. start allows you to launch a complex application environment that requires several processes to be fully functional (for example, processing background jobs in addition to a web server).

+11
source share

All Articles