what is mean of Deployment?

what is meaning of deploy a ruby on rails application?i am new to RoR.

please somebody explain it

Thanks

Deployment is the process of putting the application on a production server for use by real users.

Colin

Means enabling the production server from the database.yml file

> > what is meaning of deploy a ruby on rails application?i am new to RoR. > > please somebody explain it

> Deployment is the process of putting the application on a production > server for use by real users.

Means enabling the production server from the database.yml file??

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

In a strict operational sense, the term means installation and configuration/activation of software on any environment under management, so it could be meant as production, staging, integration testing, etc. In the Rails world where development and testing are most often virtual environments coexisting on the developer’s workstation, this will only be the production environment for most cases.

I am running the application in development enviornment.I want to run it under now production one.So what changes i have to make in database.yml file

     The content of this file as are

# SQLite version 3.x # gem install sqlite3-ruby (not necessary on OS X Leopard) development:   adapter: mysql   database: amritpal   username: root   password: 12345   pool: 5   timeout: 5000

# Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test:   adapter: sqlite3   database: db/test.sqlite3   pool: 5   timeout: 5000

production:   adapter: sqlite3   database: db/production.sqlite3   pool: 5   timeout: 5000

Thanks

Are you planning to continue using sqlite in the production environment? Most people don’t, but it’s not a problem to do so.

If not or if the default sqlite settings aren’t right for you, then you’ll need to make some changes, but those will depend on the environment you’re deploying into. But what those should be isn’t a question the mailing list can answer for you without more information.

The production environment setting with sqllite are by default .I want to use mysql for production too.So i changed the production enviornment settings to    production:   adapter: mysql   database: blog   username: root   password: 12345   pool: 5   timeout: 5000

                                   Is it enough??

Thanks

If you’re running Rails 3, you’re better off using “mysql2” as the adapter and you have to make sure you include the mysql2 gem in your Gemfile too. Also, you might want to use a more secure password for MySQL on your production server :wink:

Best regards

Peter De Berdt

Also by default if you’d created the app as a MySQL app in the first place:

encoding: utf8

reconnect: false

socket: /var/run/mysqld/mysqld.sock

HTH.

All most all developers develop application in their local computer. This is called as development environment. Once your development completed, you need to move the application to a production server where other people can use your website. Moving the application from development environment to production servers called deployment.

Hope you understand.

Thanks i got :

I am running rails 2.3.5.Now view following                adapter: mysql     database: blog     username: root     password: (will take a strong password )     pool: 5     timeout: 5000     socket: /var/run/mysqld/mysqld.sock                                                             Is it ok now?

Thanks

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

>> >> Are you planning to continue using sqlite in the production >> >> environment? >> >> Most people don't, but it's not a problem to do so.

>> >> If not or if the default sqlite settings aren't right for you, then >> >> you'll >> >> need to make some changes, but those will depend on the environment >> >> you're >> >> deploying into. But what those should be isn't a question the >> >> mailing list >> >> can answer for you without more information.

>> > The production environment setting with sqllite are by >> > default .I want to use mysql for production too.So i changed the >> > production enviornment settings to >> > production: >> > adapter: mysql >> > database: blog >> > username: root >> > password: 12345 >> > pool: 5 >> > timeout: 5000

>> > Is it enough??

>> If you're running Rails 3, you're better off using "mysql2" as the >> adapter and you have to make sure you include the mysql2 gem in your >> Gemfile too. Also, you might want to use a more secure password for >> MySQL on your production server :wink: > I am running rails 2.3.5.Now view following > adapter: mysql > database: blog > username: root > password: (will take a strong password ) > pool: 5 > timeout: 5000 > socket: /var/run/mysqld/mysqld.sock > Is it ok > now?

Does it work? Don't forget to make the production database

     it will be created as rake db:create (after specifying in the production enviornment i,e database: production)?? and to

start the server in production mode.

        how to start server in production mode?         is it simply script/server??         or other are to be made in other files ??

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.

          Now i will use root for some time,afterwards i will change

Thanks

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

As always, Colin has at least one good point. And I would add to that.

Initially, you asked what is meant by deployment. Several people did provide the answer to that question, at which point this topic could safely have been considered "closed."

Being resourceful is always a good idea. However, this thread has turned quickly from a question about the meaning of deployment to "please step me through deployment of an application." :wink:

As always, Colin has at least one good point. And I would add to that.

Initially, you asked what is meant by deployment. Several people did provide the answer to that question, at which point this topic could safely have been considered "closed."

                I too think so.Sorry for extending the question.

Please tell me in which to specity RAILS_ENV=production.I didnt          find it in enviornment.rb file

       Thanks