Feb 2005 22

Installing Tracks on Dreamhost

qDot wrote up a really nice tutorial on how to install Ruby, Rails and Tracks on Dreamhost. It would probably also be a good guide for anyone else who is hosted on a server where Ruby isn’t already installed. However—and I feel a bit like a kids TV presenter saying that you should get an adult to help you with the cutting out—do ask your host first if they would mind you doing this. I don’t want to be responsible for anyone being booted off their server wink.

Note also that step 1 of installing Tracks isn’t necessary as of Tracks 1.01; Redcloth is distributed with the application.

Thanks, qDot!

17 Comments

Hi,

Did you try it lately? Dreamhost has rails running in production now [October 2005], so I skipped “Installing Ruby/Gem/Rails” and tried to put “RewriteBase /tracks/public/dispatch.cgi” in the .htaccess file that is in the tracks public directory but I still get :

“Not Found

The requested URL /dispatch.cgi was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.”

When I point my browser to http://www.mydomain.com/tracks/public/login/signup

Do you have any more tips to share? Please? lol!

Thanks!

I don’t have an account on Dreamhost, so I can’t test it. However, I don’t know if the RewriteBase liine is needed anymore. Rails now has routes which handle much of the URL rewriting, so in most circumstances, the standard .htaccess should work.

I took a look at the comments on qdot’s page, and there’s one from Carl Youngblood as follows:

“I figured out my problem. All directories in which your rails installation goes have to be chmodded to 755 permissions. My domain’s directory was set to 775, and it caused Apache to fail when trying to run my CGI scripts.”

Might that solve your problem?

I’ll try again and post the results back here.

Thanks a lot!
-----

I have Tracks running on Dreamhost. The only hard part was waiting for them to create the DB. They said 10 minutes, but it ended up being almost 10 hours.

Once that was done, it was smooth sailing. Of course, ‘rake migrate’ did not work, so I have to use ‘rake db_schema_import’ and it worked great.

Thanks for that tip, Michael. Except for the ‘rake db_schema_import’ part that tripped me up, the install was pretty easy.

I got it running on Windows, so I decided to try moving it to a site hosted by asmallorange.com.  The comments in the dreamhost discussion made me think that it was too slow to be useful.

Of course everything went smoothly on asmallorange all the way in the installation.html file until you get to the part about launching the browser.  That part of the instruction only applies to local installs.  Can anyone give me guidance about how to launch it off a webhost?

Hemant Gupta: If you’re running it using Apache (the normal situation, unless you’ve set up lighttpd), then you don’t actually need to ‘launch’ because the server is already running. Provided that Apache knows to load the file public/dispatch.cgi, it should just work if you access the application through a browser.

I just went through the process of installing Tracks on Dreamhost and it’s actually gotten quite a bit simpler.  And I’m strictly a desktop coder, I came to this with no knowledge of Ruby or Rails. Here’s my version:

1) Ruby on Rails is installed on Dreamhost servers by default, so skip that section of qDot’s tutorial.  Jump to the “Installing Tracks” section.  Do the first 5 steps.

2) Change to your tracks directory and create the “log” directory - otherwise, “rake migrate” will fail.  you can run “rake --trace migrate” to get more detail in case of errors, which is how I found that one.

3) run “rake migrate” to load up the schemas, as outlined in tracks/installation.html.

4) access your tracks install at http://yourhost.com/tracks/signup to give yourself a login

3) change the supplied .htaccess file in tracks/public to use dispatch.fcgi by default instead of dispatch.cgi - otherwise performance is quite poky!

And that’s it!  I now have a lovely installation of Tracks - and well done, bsag, it’s really a nicely implemented bit of code!

Hi,
I follows your instructions but when I try to connect to http://yourhost.com/tracks/signup (using my website address, of course) I get a 404 Not Found error.

If anyone is interested, I’ve found a hosted installation of tracks at
http://tracks.tra.in/

free for everyone to use.

Hi,

I’ve published my installing instructions for Tracks 1.043 on Dreamhost at http://www.javaconsulting.eu/2006/09/06/installing-tracks-on-dreamhost/

If you need a hand or have a question, feel free to post some comments.

Kind regards,

Frederik

Thanks, Frederik! You could add a link to your tutorial on the wiki if you like.

Thanks for the offer Frederik...I’ve tried and failed at installing Tracks twice.

I hope everyone on Dreamhost will vote for the suggestion to add a One-Click install of Tracks!
https://panel.dreamhost.com/index.cgi?tree=home.sugg&

I guess third time’s a charm. Thanks to Frederik’s install directions. Follow them exactly. I was confused at first seeing the ‘Welcome Aboard’ page and a weird error under Application Enviro: ‘Recognition failed for “/rails/info/properties”’ but ignored it, deleted index.html as instructed and my app is up and working. bsag, YOU ROCK MY WORLD!

Has anyone attempted to install tracks on Media temple’s Grid server?

Just used Frederik’s instructions along with the standard Tracks install notes and everything work. I tried this previously and could not get it to work, so thanks to all.

oi tudo bem com vcs

Name:

Email (not shown on page):

Location (optional):

URL:

Remember my personal information

Notify me of follow-up comments?

Please enter the word you see in the image below: