Created
January 30, 2016 13:43
-
-
Save andristeiner/829775a64b1a9f8a020f 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
apt-get update && apt-get install -y mysql-server libmysqlclient-dev lzop libsqlite3-dev screen | |
service mysql start | |
echo "CREATE DATABASE phpbb;" | mysql | |
gem install mailcatcher && mailcatcher --http-ip 0.0.0.0 | |
ssh <oldserver> mysqldump --single-transaction <olddb> | mysql phpbb | |
rsync -az <oldserver>:<oldpath> /var/www/phpbb/ | |
chmod 777 /var/www/phpbb/ -R | |
sv stop unicorn | |
su - discourse | |
cd /var/www/discourse/ | |
echo "gem 'mysql2'" >> Gemfile | |
echo "gem 'ruby-bbcode-to-md', :github => 'nlalonde/ruby-bbcode-to-md'" >> Gemfile | |
bundle install --no-deployment --path vendor/bundle | |
vi script/import_scripts/phpbb3/settings.yml | |
screen | |
RAILS_ENV=production bundle exec ruby script/import_scripts/phpbb3.rb script/import_scripts/phpbb3/settings.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment