Skip to content

chuta0915/wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

git clone git@github.com:chuta0915/wordpress.git

Change name.

mv wordpress www.hoge.com
cd www.hoge.com

Setup Heroku

heroku create [アプリ名] -s cedar -b git://github.com/iphoting/heroku-buildpack-php-tyler.git
heroku addons:add cleardb:ignite -a [アプリ名]
heroku config -a [アプリ名] | grep CLEARDB_DATABASE_URL
heroku config:add DATABASE_URL='[↑で調べたURLを mysql://〜 から、ここに書きます]' -a [アプリ名]

Setting

modify wp-config.php based on CLEARDB_DATABASE_URL. URL indicates username, password, DBname etc like mysql://username:password@us-cdbr-east-XX.cleardb.com/heroku_00000000000?reconnect=true

modify like this.

/** WordPress のためのデータベース名 */
define('DB_NAME', 'heroku_00000000000');
 
/** MySQL データベースのユーザー名 */
define('DB_USER', 'username');
  
/** MySQL データベースのパスワード */
define('DB_PASSWORD', 'password');
   
/** MySQL のホスト名 */
define('DB_HOST', 'us-cdbr-east-XX.cleardb.com');

copy and pasete the source code of unique key from here. https://api.wordpress.org/secret-key/1.1/salt/

.htaccess file and nginx.conf file are already setup.

git add .
git commit -m "setup app info"
git push heroku master

Plugin

  • WP CleanFix
  • jetpack-markdown
  • google-analytics-for-wordpress
  • nephila-clavata

About

wordpress for heroku

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published