Created
February 22, 2017 01:40
-
-
Save mfrederickson/8d7c9c9b9623f424182b870ca892e636 to your computer and use it in GitHub Desktop.
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
# As root user, install the packages we need | |
apt-get install build-essential libmagickwand-dev libmysqlclient-dev libpq-dev libv8 libxslt-dev mysql-server mysql-client git curl apache2 | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7 | |
sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger jessie main > /etc/apt/sources.list.d/passenger.list' | |
apt-get update | |
apt-get install -y apt-transport-https ca-certificates libapache2-mod-passenger | |
a2enmod passenger | |
apache2ctl restart | |
# install rvm | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
\curl -sSL https://get.rvm.io | bash -s stable | |
vi /etc/sudoers.d/99-concerto | |
service sudo restart | |
adduser deploy | |
adduser deploy sudo | |
adduser deploy rvm | |
mkdir /var/log/concerto | |
chown -R deploy:deploy /var/log/concerto | |
mkdir -p /var/webapps/concerto | |
chown -R deploy:deploy /var/webapps | |
# As deploy user | |
rvm install 2.3 | |
gem install bundler | |
gem install ruby-xslt | |
gem install mysql2 | |
gem install libv8 | |
gem install therubyracer | |
mysql -u root -p | |
# create the database and user | |
# create database concerto; | |
# grant all on concerto.* to USERNAME@localhost identified by 'PASSWORD'; | |
[run cap production deploy:check from dev workstation] | |
# copy and tweak configs from repo | |
cp /tmp/database.yml /var/webapps/concerto/shared/config/ | |
cp /tmp/concerto.yml /var/webapps/concerto/shared/config/ | |
vi /var/webapps/concerto/shared/config/database.yml | |
[run cap production deploy from dev workstation] | |
# logrotate | |
# apache concerto.conf | |
# init.d/concerto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on a debian jessie 8.7 default build with ssh server.