umamahesh_nyros

Joined: 17 Jul 2007 Posts: 224 Location: KAKINADA
|
Posted: Mon Nov 02, 2009 1:53 pm Post subject: deploying Ruby on Rails application on SliceHost |
|
|
Hello Developers,
Many of you think deploying rails application to server is an hastic task. this is due to change in development environment to production environment. As many developers are going to develop application in Windows system. but coming to hosting application, they need to deploy application in Linux systems which are with different flavors(such as Ubuntu and Fadero .....).
Before deploying application to server you need to choose a hosting server which meets your requirement for your web application. Below is the procedure to deploy rails application in Ubuntu system.
Once you have taken an account in slice host, they will provide the login details as fallows.
Ipaddress, username, password.
these details are related to your account login details for file transferring i.e for copying files from local system to remote system.
You will have one more login credentials to manage the Domain specific related things. for slice host those details as fallows.
https://manage.slicehost.com/login
username: *
password: *
Those details correspond to your slice. Here slice means your account i.e the space you ave purchased in slice host. so they used to call your account as slice.
Once logged into your slice account. you can have good looking user friendly interface to manage your slice. i.e Slice, DNS , Account and Help.
when you click on the slice tab it will display list of your slices i.e accounts. By clicking on the specific slice account you will be redirected to a page where you can complete manage your settings.
This page displays Status,
Distro,
Age,
Size,
IP,
Backups and
Datacenter for your slice.
And you will have few more options such as
Clone,
Rename,
Reboot,
Resize,
Rebuild,
Kernel and
Delete.
When you click on the 'DNS' it wil display list of all DNS Zones. i.e list of all Domains. i.e this interface will provide you to manage domains and subdomains. so you create/add/edit/delete all domains related content.
the above mentioned process is to manage all the domain related settings which are more critical and important for the web application deployment. Below is the process of uploading files to server.
In order to make your webs application available to open world, you need to have required softwares in the server. if your account is shared server, then all the softwares are preinstalled on the slice. if your account is dedicated server you need to install all the required softwares by hand. so below is the URL where you can fallow the process to install required softwares for your slice.
http://www.rorexperts.com/installing-ruby-on-debian-linux-distributions-with-apt-t1040.html
Use any available FTP softwares(WINSCP, FILEZILLA .......) to connect to your remote host location. FTP will provides an interface to upload files from local system to server. so by using this interface you can upload local files to server.
once you logged in through FTP, you will in the home directory of your account. now choose a relevant folder to upload files to server. so copy all the application files to sever from your local system.
once all files have been uploaded to server, create required database for your application. once database is created edit database.yml file to hosting database login details. once this done. open your browser and run the URL of your website. this shoes the application in web browser if every thing goes good.
To be continued...
Thank You,
Uma. |
|