Skip to content

Instantly share code, notes, and snippets.

@andristeiner
Created January 30, 2016 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andristeiner/829775a64b1a9f8a020f to your computer and use it in GitHub Desktop.
Save andristeiner/829775a64b1a9f8a020f to your computer and use it in GitHub Desktop.
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