Created
July 27, 2010 23:32
-
-
Save seebq/493059 to your computer and use it in GitHub Desktop.
This file contains 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
# Slicehost Server running Ubuntu Lucid Lynx 10. | |
# | |
apt-get update && apt-get upgrade -y | |
apt-get install build-essential ruby1.8-dev rails apache2 apache2-prefork-dev libapr1-dev mysql-server git-core sqlite3 libreadline5-dev libmysqlclient15-dev -y | |
useradd -m -G users -s /bin/bash deploy | |
passwd deploy # enter a password | |
gem install rails --no-rdoc --no-ri | |
gem install mysql --no-rdoc --no-ri | |
gem install passenger --no-rdoc --no-ri | |
/var/lib/gems/1.8/bin/passenger-install-apache2-module | |
# follow config | |
a2enmod cache | |
a2enmod deflate | |
a2enmod rewrite | |
# create conf | |
# vi /etc/apache2/sites-available/xxxx.com.conf | |
a2ensite # enable the site | |
mkdir -p /var/www/apps | |
chown -R deploy:users /var/www/apps | |
mysql -u root | |
# create database xxxxx_production; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment