Forked from masainox/wordpress-heroku-ja-install.sh
Created
November 21, 2012 23:22
-
-
Save noriaki/4128510 to your computer and use it in GitHub Desktop.
日本語環境のwordpressをherokuにセットアップするスクリプト
This file contains 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
#!/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