Wednesday, February 6, 2008

using aptana to get your code from svn.

In order to use svn with aptana, I did the following:

I had to install the subclipse plugin. To do this, look for it in the aptana plugin manager. Right click, select install.

After installation:

Select Windows->Preferences->Team->SVN: Check SVNKit (Pure Java)

Then switch to the SVN Repository Exploring Perspective. In the SVN Repository View, click the add location button. Type this in, but replace your name and password...

svn+ssh://brent@216.194.127.249/home/svn

After it is added, navigate to /home/svn/apg/trunk. right-click, select checkout. choose the name as apg. click next, choose the location as your instant rails installation, rails-apps directory.

Now from the config/database.example file, make a copy called config/database.yml. Edit the file as necessary to make it point to your database. If you haven't already, from Instant Rails, open a ruby console and execute the following:

C:\InstantRails\rails_apps\apg>mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 1 to server version: 5.0.27-community

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database apg_development
-> ;Query OK, 1 row affected (0.77 sec)

mysql> exit
Bye

C:\InstantRails\rails_apps\apg>rake db:dbdata:load
(in C:/InstantRails/rails_apps/apg) -- msg: retrieving db info -- msg: Loading data into DBmysql -uroot ... [password filtered]

C:\InstantRails\rails_apps\apg>

Now your database is ready to go!

1 comment:

Brent said...
This comment has been removed by the author.