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.
In: Server Config · Tagged with: Ubuntu
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 […]
In: Server Config · Tagged with: mysql, postgresql
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.
In: Server Config · Tagged with: apache, phusion passenger, Rails
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 […]
In: Server Config, Web Development · Tagged with: git
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 […]
In: Server Config · Tagged with: git, Github
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
In: Server Config · Tagged with: Ubuntu 8.10
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 […]
In: Server Config · Tagged with: database backup, pg_dump, psql