Archive for the ‘Server Config’ Category

Ubuntu Timezone

Need to set your servers time zone to your timezone? (even tho it sits on the other side of the planet..) sudo dpkg-reconfigure tzdata Use the screen provided, it will work via ssh. How easy was that?  Now you can make cron jobs in your own time-zone.

Posted on June 16, 2009 at 9:31 am by Jordan Carter · Permalink · Leave a comment
In: Server Config · Tagged with: 

Postgres vs MySQL

or I have used both MySQL and Postgres and if I was starting a project right now I would probably use Postgres. I have read the wikivs MySQL vs Postgres and there is a lot in there that I understand and a lot that I don’t. What I like about Postgres is that it uses […]

Posted on June 13, 2009 at 11:29 pm by Jordan Carter · Permalink · Leave a comment
In: Server Config · Tagged with: ,

Routes Error using Phusion Passenger, Apache, Rails 2.2.2 and RailsBaseURI

Rails can’t find the page, but it should be the root directory. It works when I script/server, it just won’t load with Passenger properly. Solutions in google groups Add config.action_controller.relative_url_root = “/appName” to your environment.rb file.

Posted on June 3, 2009 at 1:03 pm by Jordan Carter · Permalink · Leave a comment
In: Server Config · Tagged with: , ,

svn2git – How To – svn2git not found

I have tried to move a svn repo to git thismorning and have been having great trouble. Firstly, I work from a Mac.  This is not by choice, but was my only option.  It was that or paper and pen.. Now I have been working here for a while I have a linux build in […]

Posted on June 2, 2009 at 11:59 pm by Jordan Carter · Permalink · 2 Comments
In: Server Config, Web Development · Tagged with: 

Github public key authentication rejected

So you just added another public key to your github account so you can deploy your app on your new server. You jump down into a folder you want to put it into (/var/rails) in my case. You notice you need to add sudo to the front so that git can create the folder it […]

Posted on June 2, 2009 at 12:41 pm by Jordan Carter · Permalink · Leave a comment
In: Server Config · Tagged with: ,

Setup a new box – Ubuntu Intrepid Server setup

Installed in the server install Postgresql openssh sudo aptitude install ruby1.8 rails build-essential ruby1.8-dev sudo gem install rails sudo gem install rails -v=2.2.2 sudo gem install chronic sudo gem install googlebase sudo gem install hpricot

Posted on May 30, 2009 at 10:56 pm by Jordan Carter · Permalink · One Comment
In: Server Config · Tagged with: 

Postgres pg_dump straight into another database for backup or development

I frequently use a dump of the live database data to test new migrations, new features. I used to pg_dump on the remote live server to a file, then scp it across to my local server, psql it back to life in a new database. I have wondered if it was possible to do it […]

Posted on May 12, 2009 at 12:28 pm by Jordan Carter · Permalink · Leave a comment
In: Server Config · Tagged with: , ,