Posted by: Jeff Owens in Rails
If you've finished part two let's continue. In this part of the series I'm going to assume you have a working installation of MySQL on your local client machine that we will only need for testing purposes. If you've got a Mac you might look at installing MacPorts and using it to install MySQL for you. First we'll create a test rails project. I'm going to use the latest rails 2 sugar in setting up this simple test site. Open up terminal or iTerm and find a directory you want to use to create the test project. Here we go:
CODE:
-
rails --d=mysql factory
-
cd factory
-
rake db:create
-
script/generate scaffold widget name:string description:text
-
rake db:migrate
Now let's test our site to make sure everything is working correctly:
Open up your browser and try the site out using http://localhost:3000/widgets.
Read the rest of this entry »
Tags: Rails, ruby on rails, setup, subversion
Posted by: Jeff Owens in Rails
We completed setting up ssh and ssh keys in part one, let's continue now with part two of installing a full Rails stack.
SSH into your server:
CODE:
-
ssh -p 8888 deploy@your_linux_box.com
By default, Debian and Ubuntu have five package repositories called main, restricted, universe, multiverse, and commercial. You will need the universe package repository. By default, it may or may not be enabled. To check, edit the /etc/apt/sources.list file (note that if you didn't install the aliases in part one you'll use "sudo nano" instead of sn below):
Read the rest of this entry »
Tags: Rails, ruby on rails, setup, subversion