Skip to content

Instantly share code, notes, and snippets.

@masainox
Last active October 3, 2015 08:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save masainox/2425697 to your computer and use it in GitHub Desktop.
Save masainox/2425697 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 -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