Last active
October 3, 2015 08:28
-
-
Save masainox/2425697 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 -b git://github.com/iphoting/heroku-buildpack-php-tyler.git | |
heroku addons:add heroku-postgresql:dev | |
heroku pg:promote `heroku config | grep 'HEROKU_POSTGRESQL_' | sed -e "s/\:.*//"` | |
# create a new branch | |
git checkout -b production | |
# make the wp-config.php and commit wp-config.php | |
curl https://api.wordpress.org/secret-key/1.1/salt/ > salt.txt | |
cat wp-config-sample-first-part.txt salt.txt wp-config-sample-second-part.txt > wp-config.php | |
rm salt.txt | |
>.gitignore | |
git add wp-config.php | |
git commit -m "Initial WordPress commit" | |
# deploy to heroku | |
git push heroku production:master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment