Created
April 30, 2012 19:47
-
-
Save D3xx73r/2562100 to your computer and use it in GitHub Desktop.
Server configuration, running Ubuntu 10.04.4 LTS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the latest packages | |
apt-get -y update | |
# Install curl, git and python properties to be able to add repositories to apt | |
apt-get -y install curl git-core python-software-properties | |
# Install nginx | |
add-apt-repository ppa:nginx/stable #add nginx repo to get the latest version | |
apt-get -y update # update installed packages | |
apt-get -y install nginx # Install the latest stable nginx | |
service nginx start # Start the nginx server | |
# For the database i'm going to leave it to you, but here is how you would install PostgreSQL | |
add-apt-repository ppa:pitti/postgresql | |
apt-get -y update | |
# The last package "libpq-dev" will help us build the PostgreSQL gem | |
apt-get -y install postgresql libpq-dev | |
sudo -u postgres psql | |
\password # Create a password for the postgres user | |
create user <user> with password '<password>'; # Create a new user | |
create database <database> owner <user>; # Create the database | |
\q | |
# Install Node.js to help us with Rails asset pipeline | |
add-apt-repository ppa:chris-lea/node.js | |
apt-get -y update | |
apt-get -y install nodejs | |
# Add a user for deployment | |
adduser <user> --ingroup admin | |
su <user> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment