Main Site
19 Jan 2025
Support Center
»
Knowledgebase
»
Virtual Private Servers
»
LxAdmin
»
Deploying a rails application with Lighttpd and LxAdmin
Deploying a rails application with Lighttpd and LxAdmin
Solution
1. Login to LxAdmin at https://ipaddress:7777
2. If this is the first domain you have setup, you will first need to setup a dns zone template. Please see
How do I configure DNS
for more details.
3. Add your domain to LxAdmin >> Click On the Domains tab at the top of the screen >> Click Add Domain on the set of tabs in the middle of the screen >> Enter in Domain Name, pick a password, Continue without plan >> Then click Add.
4. On the next screen, change the Number Of Ruby Process from unlimited to 2 and leave everything else how it is, and click on Add. (If you have already added your domain you can set the number of ruby processes by clicking on your domain, then clicking on Limit) You will now see a list of domain added to your server.
5. Click on your newly added domain. Under the box labeled script, click on Rails App. In the rails application manager, click on Add Rails App.
6. Now, select a name for your application, check the box that says “Accessible Directlyâ€, and change the number of ruby processes to 2 and click add. This will setup the follow directory where you rails application should be located: /home/admin/ror/domainname.com/applicationname
7. Next you should upload or checkout your application to this directory. You should make sure the files under this directory have the permissions of admin:admin. You can do this quickly by running the following command:
chown admin:admin /home/admin/ror/domainname/applicationname -R
8. Now, you can setup your MySQL database in LxAdmin by clicking on MySQL databases. After you add the database it will give you the exact database name and username to use in your database.yml.
9. Once you have updated your database.yml with the correct login, password and database name you will need to restart lighttpd using the following command:
service lighttpd restart
If you would like to setup Capistrano to deploy your application, please see the following article:
How to setup Capistrano with LxAdmin and Lighttpd
Article Details
Article ID:
2
Created On:
13 May 2008 06:45 PM
User Comments
Add a Comment
Sharing is good. If you have a comment about this entry, please feel free to share. The comments might be reviewed by our staff, and may require approval before being posted. Questions posted will not be answered. Please submit a Ticket for support requests.
Image Verification Required
Please enter the characters that appear to the right in the space provided. This is just to verify that you are a human.
Full Name:
E-mail Address: (Optional)
Comment:
Back
Login
Email Address:
Password:
Search
-- Entire Support Site --
Knowledgebase
Downloads
Article Options
Add Comment
Print Article
PDF Version
Email Article
Add to Favorites
Home
|
Submit a Ticket
|
Knowledgebase
|
News
|
Downloads
Language:
English (U.S.)
Website Design/Theme by MindWireMedia
Help Desk Software By Kayako eSupport v3.30.02