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.

    when deploy applications for development or testing environment, we need to:

    • 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
    • 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:

    • 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



    References
    Hartl, M. and Prochazka, A. (2008). Railsspace: Building a Social Networking Website with Ruby on Rails. Person Education, Inc.

    Advertisement

    Entry filed under: 3. Workshops. Tags: .

Exercise 13: Shopping cart specifications Exercise 14: Searching mechanisms, Virtual worlds and Cyberagents (1/2)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


 

May 2010
S M T W T F S
« Apr    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Categories


Follow

Get every new post delivered to your Inbox.