https://github.com/tarmo888/wordpress-heroku-composer
Wordpress CMS boilerplate that is deployable to Heroku cloud platform using Composer packages.
https://github.com/tarmo888/wordpress-heroku-composer
apache2 composer heroku mysql php wordpress
Last synced: 10 months ago
JSON representation
Wordpress CMS boilerplate that is deployable to Heroku cloud platform using Composer packages.
- Host: GitHub
- URL: https://github.com/tarmo888/wordpress-heroku-composer
- Owner: tarmo888
- License: mit
- Created: 2017-07-27T15:14:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-31T23:46:44.000Z (over 8 years ago)
- Last Synced: 2025-04-13T10:31:40.865Z (about 1 year ago)
- Topics: apache2, composer, heroku, mysql, php, wordpress
- Language: PHP
- Homepage: https://packagist.org/packages/tarmo888/wordpress-heroku-composer
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Use Heroku Button or Bash commands for deploying.
## Deploy via Heroku Button
[](https://heroku.com/deploy?template=https://github.com/tarmo888/wordpress-heroku-composer/tree/master)
## Deploy via Bash command line
Create app folder and create-project.
```bash
mkdir new-app-folder
cd new-app-folder
composer create-project --stability dev --no-interaction tarmo888/wordpress-heroku-composer .
```
Alternatively (if composer create-project didn't work), you can use git clone too make shallow copy
```bash
git clone --depth=1 https://github.com/tarmo888/wordpress-heroku-composer.git . && rm -rf .git
```
Login to Heroku and create new app (make sure to git init first).
```bash
git init
heroku login
heroku apps:create new-app-name --buildpack heroku/php --region eu
```
Add the following add-ons.
```bash
heroku addons:add jawsdb-maria:kitefin
heroku addons:add heroku-redis:hobby-dev
heroku addons:add sendgrid:starter
heroku addons:add papertrail:choklad
heroku addons:add scheduler:standard
```
Set your AWS credentials.
```bash
heroku config:set AWS_ACCESS_KEY_ID=
heroku config:set AWS_SECRET_ACCESS_KEY=
```
Disable WP Cron to call it from Scheduler instead? (0 or 1).
If you set DISABLE_WP_CRON=1 then add this to Heroku Scheduler for every 10 minutes: "php /app/cms/wp-cron.php"
```bash
heroku config:set DISABLE_WP_CRON=0
```
Force login and admin to HTTPS? (0 or 1)
```bash
heroku config:set FORCE_SSL=0
```
Visit Wordpress hash generator and set following values
https://api.wordpress.org/secret-key/1.1/salt/
```bash
heroku config:set AUTH_KEY=
heroku config:set SECURE_AUTH_KEY=
heroku config:set LOGGED_IN_KEY=
heroku config:set NONCE_KEY=
heroku config:set AUTH_SALT=
heroku config:set SECURE_AUTH_SALT=
heroku config:set LOGGED_IN_SALT=
heroku config:set NONCE_SALT=
```
Deploy your app to Heroku.
```bash
git add .
git commit -am "init"
git push heroku master
```