Workshop 7: End of the Line: production site migration and maintenance
May 8, 2010 at 9:35 pm Leave a comment
Workshop 7: End of the Line: production site migration and maintenance
Developers conclude their work with the OTBS and look at the options for deployment of the site. Examine the various platforms/software tools used for deployment such as UNIX environment suggested in the Discussion Notes, Mongrel or Mongrel cluster, Nginx, Subversion or Capistrano (during development stage), JRuby in the Java environment.
Which way?
The choice is up to you as this workshop present just one option and you may like to use another, such as deploying the OTBS in a .NET or J2EE environment
- For my Online Taxi Booking System (OTBS), I install Ruby on Rails 1.8.6-26 and Rubygems 1.3.2 in my windows server 2003.
In Ruby on Rails development, i would like to use “rake” to generate the database table and use scaffolding to generate the view page. It is very powerful for Rapid application development.
Then, I feel Ruby on Rails is very suitable for SQL operation, because the simplest datbase operations are often described as CRUD (Create, Rad, Update and Desctroy).
Can you get the OTBS Running in production mode as a minimal production server?
-
Hartl & Prochazka (2008) state development and the test are two different environments that the applications are run in Railspace. Similar to these environments, production environment also requires a corresponding database.
- Configure the production database connection in the file named database.yml.
- Create database in the production server
- Run the migration in Rails by using of ‘rake’ to construt tables in it
- Using Mongrel / Linux OS / Apache Web server, as the Rails application server
- Setup the same softwares (such as Ruby, Rails, database and plugins) on the server like the development computer
- Upload the Rails project to the server, follow the deploy application steps at the above to create and configure the production database
- Install and configure the application server and webserver
when deploy applications for development or testing environment, we need to:
Stop the development server and start a new server in production environment by using the -e flag (>ruby script/server -e production)
As a minimal production server:
References
Hartl, M. and Prochazka, A. (2008). Railsspace: Building a Social Networking Website with Ruby on Rails. Person Education, Inc.
Entry filed under: 3. Workshops. Tags: .
Trackback this post | Subscribe to the comments via RSS Feed