Welcome Guest | Login

Beginning Rails Deployment

Hello. I apologize ahead of time if a post for this matter has already been created. I walked through some of the "How to Deploy a Rails Application with FastCGI" which left me stumped at the point of the database matter. I am completely new to hostingrails.com and true rails hosting. I have only had experience with GoDaddy whom I have finally figured out royally sucks the big universe when it comes to holding up their claim of supporting rails.

Perhaps to really let readers who may be able to assist me with this matter, I should explain how I am currently doing things. What I have done is I have created a rails app on my ubuntu hardy heron laptop, then from here I would typically ftp my files to a server and think it is good to go. Here I discover it to be completely wrong. I notice in my cpanel under security (based on what I have seen from a video tutorial about ssh access), I do not have the ssh option. I saw in a forum post somewhere that someone had enabled the ssh access for the original poster.

I would be really appreciative and grateful if someone would be willing to walk me through this matter and educate me on the right way I should be doing things. If I need to recreate the entire app, I am not opposed to doing so. If one is able to use gmail chat to walk me through this in real-time, it would really help things along.

Thanks ahead of time and I truly appreciate any and all help that can be provided.

In addition to this, my background has been in an academic environment in which we were just creating applications locally, zipping them up and sending them to the instructors. I think the most important thing missing from my course is the bit about hosting, and setting things up.

2008-07-04 01:53 PM

CodeRage
Hi Coderage, first of all you do have ssh access (everyone at HostingRails does, nevermind that cPanel tutorial).  Second, if you don't want to tackle svn/capistrano, if you're following that initial tutorial then you should be able to create your production database through cPanel's interface, create a user, then assign all access privileges to that user on that database (yes, three steps).  

Let us know what specific help you may need.  We do IM chat occasionally for our custom install clients but it is not provided in the normal support.  But, do ask questions here as you have then and we normally respond quickly.

2008-07-04 02:24 PM

MN MLS - Buy/Sell Real Estate in Minnesota
Thanks much for the response. It blows me away how quickly someone read *and* responded. This is something I am not used to.

As for svn, i'd be willing to do that as I have RapidSVN installed on this machine.

Regarding chat, I should have indicated the audience that was directed to, which was other users rather than the support team.

So, regarding your response William, I do believe I created a users db, created a user, assigned it all priveleges. What I am confused about is when I develop rails applications, that bridge between local development, and deployment. From what I understand there are local configs for *.cgi/fcgi, environment.rb, and I think database.yml. Not to mention needing to setting 755 and 775? priveleges on the ./public directory and cgi files, etc. A lot of this is a bit overwhelming to me as a beginner, but never the less I want to do it and do it well.

CodeRage

2008-07-04 02:57 PM

CodeRage
CodeRage, I would be happy to chat with you even outside support.  I will be around the desk for another 1.5 hrs before heading out to 4th of July festivities - so please contact support with "attn: william" and let's setup a chat.  If I don't hear from you I'll write a response to your thoughts above before I leave.

2008-07-04 05:02 PM

MN MLS - Buy/Sell Real Estate in Minnesota
OK - we can talk this weekend.  Basically the tutorials do spell out how to handle the local vs deployed versions (permissions, etc...) but if you have any specific questions let our 24/7 support desk know.  Catch you later, enjoy the evening.  

2008-07-04 06:22 PM

MN MLS - Buy/Sell Real Estate in Minnesota
I do have a specific question at this moment that I just thought of.

First I believe it is quite important to be able to access the shell in command line to be able to run script/server, script/generate, script/console etc etc to be able to see what is going on.

How do I do that (since the ssh thing isn't there as mentioned in my previous post above, which I believe I can ignore in the video tutorial per your statement)?

This is where I am currently stumped with needing ssh access for the purpose of 'dumping my local db to the remote (server) db'.

CodeRage

2008-07-05 12:53 AM

CodeRage
Ok - first of all download a free ssh client like PuTTy or if you're not on windows you should have one already installed.  Then ssh into the IP of the server and you'll be able to run the commands from there. If you have migrations a simple "rake db:migrate RAILS_ENV=production" should do the trick if executed from your application root directory online and you have your database setup and configured.  

2008-07-05 01:38 AM

MN MLS - Buy/Sell Real Estate in Minnesota

Hello Guest! In order to post you must be an active client with us, please log in or sign up.