Skip to content

Instantly share code, notes, and snippets.

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 noriaki/4128510 to your computer and use it in GitHub Desktop.
Save noriaki/4128510 to your computer and use it in GitHub Desktop.
日本語環境のwordpressをherokuにセットアップするスクリプト
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment