Deployment is the process of putting the application on a production
server for use by real users.
Colin
It is generally not only that as the machine that will be running the
app in production is generally not the same one used for development.
So deployment is the whole operation of getting it up and running on
the production machine, which is often a public webserver rather than
a desktop machine so the software environment is often significantly
different.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
--
Best regards
Peter De Berdt
Does it work? Don't forget to make the production database and to
start the server in production mode.
I would advise against using your mysql root user for rails access,
better to make a rails user and give it just the permissions it needs.
Colin
To create the production database
RAILS_ENV=production rake db:migrate
The setting for RAILS_ENV tells it which settings to use from
database.yml (production or development normally)
to start server in production mode
script/server -e production
Googling for
rails create production database
and
rails start server production
would probably have got you the answer to these much quicker than waiting here.
Colin
You just run the command
RAILS_ENV=production rake db:create
(note, I made a mistake before, it is db:create not db:migrate)
That sets the environment variable RAILS_ENV to production and runs
rake, then rake db:create checks RAILS_ENV so it knows which section
to use from database.yml and which file to use from
config/environments.
As I pointed out previously did you try googling for
rails create production database
before asking here?
Colin
Is what all done? It created the db, what more do you expect rake
db:create to do?
> There is no need to change the database.yml file's production
> environment settings?
If you wanted any changes you should have made them before running
db:create. It will have used the settings under production: from
database.yml.
Colin
As I have tried to explain several times the value of RAILS_ENV
determines which environment will be used when you execute a rake
command. The environment defaults to development. So:
rake db:migrate will migrate the development db.
RAILS_ENV=production rake db:migrate
will migrate the production db.
Colin