5/17/2009

Workshop 7-part 2

To Do - part 2

A. Topic reading from Safari Books OnlineHartl, M & Prochazka, A, (2008). RailsSpace: Building a Social Networking Website with Ruby on Rails, Pearson EducationThis workshop continues to use your reading of the ‘RailsSpace’ online book and use of other online sites.

I have partially read Safari Books OnlineHartl, M & Prochazka, A, (2008) at CSU library.

B. Focus QuestionAs either a developer or as an IT manager, what are the options available when deploying and maintaining the Ruby on Rails application online?

According to the given discussion note, I discuss with Joseph Cheung. The options available when deploying and maintaining the Ruby on Rails application online are...

1. Windows Platform VS Linux

We select Linux as our platform because Linux is freeware with higher stability than MS-Window

2. Skillset on ROR and Platform

There is no issue on skill set of ROR and Linux Platform because both of us have sound skills on ROR and Linux

3. Hosting Issue

We will place the server in our office as a production environment

4. Scalability

We will use the mongrel clusters for fault tolerance and Lunix RAID 5 external diskarry so volume expansion become easy.

5. Tools

We will use ROR freeware tools on the web.

From the given intruction,which way you choose to go will most likely depend upon:

  • The user interface and your own skills;
  • How quickly you are guided through deployment by admin tools that simplify management of the system;
  • System back-up, data security, virtualization and portability features
  • Future-proofness: (grid computing or a cloud computing service);
  • How much time and money is saved by an efficient deployment and maintenance schedule.

This guideline is very important and useful, but it sometimes is session full, that i need to wait for someone's logout.

Workshop 7-part 1

To Do:

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

Can you get the OTBS Running in production mode as a minimal production server?

Share your success by posting progress comments and links etc to the Developers sub-forum site that has been set up for the Red team.


In my OTBS project, I install instantRails2.0 in my windows XP's PC and I feel instantRails2.0 is a good software for the student/developer to study ROR.

InstantRails2.0 has included mongrel web server, mysql server and ROR. Also, It is already preconfigures every setting for them.

In ROR development, i would like to use "rake" to generate the data table and use scaffolding to generate the view page. It is very good for Rapid application development.

Furthermore, i feel ROR is very convenient for SQL operation, because we do not need to create the SQL server connection string for query, insert, delete and update the DB.

Personally, I would like to implement my OTBS project from windows to linux platform because the performance of linux is better than windows. That's true. Also, I would like to use Mongrel cluster as well as using Mongrel, because Mongrel cluster simplifies the deployment of webapps and it conveniently configures and controls several mongrel servers, or groups of mongrel servers.

When need to get my OTBS running in production mode as a minimal production server, please following the below procedure:

1.) Backup the development database of OTBS by backup application which supports database backup for example NETVAULT.

2.) Use MYSQL query browser to gather the development table dictionary defination and save it in a text file.

3.) Using the development table dictionary defination file to create an identical table or db in production environment.

4.) Use Netvault with "copy data table" option to restore the development db to production db.

5.) Start the mongrel server in production mode by issuing the command -

mongrel_rails start -e production