Reply to topic
Deploying Rails Applications
topher


Joined: 25 May 2006
Posts: 3
Reply with quote
I have an application in my local machine. How do I deploy it?

Here is what I did so far.

1. Migrate the svn repository.
-I have an svn repository in my local machine (Windows XP). I dumped the repository using svnadmin dump.
-Then using putty, I created a new repository. I uploaded the dumpfile and loaded the repository using svnadmin load

2. Create a new directory, learningrails under /vservers/[directory].

3. Checkout a working copy. Now, learningrails has the apps subdirectory. (and other subdirectories)

Since the working copy was previously on my local machine there are things that I need to change. The problem is I don't know which files to change.
I changed public/dispatch.rb setting the location of ruby to #!/usr/bin/ruby. Aside from that, I did not change anything.

When I go to [domain.com]/learningrails, I see the welcome aboard page. When I click "about your application's environment", I get an error - "Rails application failed to start properly". What did I miss? I already added config/database.yml. I was also able to run rake migrate and saw the new tables in the database.

I already tried the ruby on rails tutorial - part 1 in this forum and it worked.

In my local machine, I'm using instantrails 1.3a which has rails 1.1.2.
topher


Joined: 25 May 2006
Posts: 3
Reply with quote
In turns out that the problem is the path to ruby. Just change the path in public/dispatch.rb, public/dispatch.cgi, and public/dispatch.fcgi to #!/usr/bin/ruby.
pmeserve
HostMySite Tech

Joined: 19 Mar 2004
Posts: 178
Reply with quote
topher - Ahh, glad you caught that. dispatch.fcgi should be the only important one generally, but I've run into that issue a number of times. I really wish there was some way to set a path which would work on both Windows and Linux
Deploying Rails Applications
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic