public

日本語環境のwordpressをherokuにセットアップするスクリプト

  • Download Gist
wordpress-heroku-ja-install.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
#!/bin/sh
 
git clone git://github.com/masainox/wordpress-heroku.git -b language-ja
cd wordpress-heroku
heroku create
heroku addons:add heroku-postgresql:dev
 
# copy DATABASE_URL(heroku config)
heroku config -s |grep HEROKU_POSTGRESQL_
heroku config:set DATABASE_URL=postgres://USER:PW@HOST:PORT/DB # set same var HEROKU_POSTGRESQL_*****_URL
 
# create a new branch
git checkout -b production
 
# need updating pg4wp from 1.2.2 to 1.3.0
# http://wordpress.org/extend/plugins/postgresql-for-wordpress/installation/
 
# copy the wp-config.php and commit wp-config.php
cp wp-config-sample.php wp-config.php
rm .gitignore
git add -A .
git commit -m "zomg wordpress"
 
# deploy to heroku
git push heroku production:master
 
# open app
heroku open

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.