Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Ubuntu only: apt-add-repository ppa:brightbox/ruby-ng
- apt-get update
- apt-get upgrade
- apt-get install -y postgresql-contrib python-software-properties postgresql libpq-dev libxml2-dev libxslt1-dev git jhead build-essential libgd2-noxpm libgd2-noxpm-dev ruby1.9.3 nano curl imagemagick
- echo "deb http://nginx.org/packages/mainline/debian/ wheezy nginx" > /etc/apt/sources.list.d/nginx.list
- echo "deb-src http://nginx.org/packages/mainline/debian/ wheezy nginx" >> /etc/apt/sources.list.d/nginx.list
- curl -sL http://nginx.org/keys/nginx_signing.key | apt-key add -
- curl -sL https://deb.nodesource.com/setup | bash -
- apt-get install -y nodejs nginx
- gem install bundler
- su postgres
- psql
- #CREATE user moe WITH password 'password' CREATEDB;
- #if your hoster is a faggot and didn't set locale properly, exec the following:
- #-------------------------------------------------------------------------
- #UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1';
- #DROP DATABASE template1;
- #CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'UNICODE';
- #UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template1';
- #-------------------------------------------------------------------------
- #\c template1
- #create extension test_parser;
- #VACUUM FREEZE;
- #\q
- su root
- cd ~
- mkdir moe
- cd moe
- git clone https://github.com/moebooru/moebooru.git ./
- cp config/database.yml.example config/database.yml
- nano config/database.yml
- cp config/local_config.rb.example config/local_config.rb
- nano config/local_config.rb
- mkdir public/data
- mkdir -p public/data/{avatars,frame,frame-preview,image,inline,jpeg,preview,sample,search}
- bundle install
- bundle exec rake db:create
- bundle exec rake db:reset
- bundle exec rake db:migrate
- bundle exec rake i18n:js:export
- bundle exec rake assets:precompile
- bundle exec unicorn -D
- service nginx stop
- rm /etc/nginx/nginx.conf
- curl -o /etc/nginx/nginx.conf http://pastebin.com/raw.php?i=XFZ9acqp
- service nginx start
Advertisement
Add Comment
Please, Sign In to add comment