wget https://github.com/publify/publify/archive/v8.0.1.tar.gz tar -zxvf v8.0.1.tar.gz mv publify-8.0.1/ /var/www/vhosts/publify yum install -y gcc-c++ patch libxslt-devel libxml2-devel git ruby-devel libicu-devel mysql55-devel gem install bundler -v 1.6.2 gem install rake -v 10.3.1 if [ ! -f /usr/bin/rake2.0 ]; then ln -s /usr/local/bin/rake /usr/bin/rake2.0; fi cd /var/www/vhosts/publify cp config/database.yml.mysql config/database.yml bundle config build.mysql2 --with-opt-include=/usr/include/mysql --with-opt-lib=/usr/lib64/mysql bundle install bundle exec rake db:create RAILS_ENV=production bundle exec rake db:migrate RAILS_ENV=production bundle exec rake db:seed RAILS_ENV=production ./script/rails server