All Projects → php4dev → heroku-wordpress

php4dev / heroku-wordpress

Licence: other
Template project for deploying WordPress 5.7.2 to Heroku

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
SCSS
7915 projects
Less
1899 projects
typescript
32286 projects

Projects that are alternatives of or similar to heroku-wordpress

akamai-collector
Akamai sensor data collector with API and database support!
Stars: ✭ 60 (+22.45%)
Mutual labels:  heroku
Malicious-Urlv5
A multi-layered and multi-tiered Machine Learning security solution, it supports always on detection system, Django REST framework used, equipped with a web-browser extension that uses a REST API call.
Stars: ✭ 35 (-28.57%)
Mutual labels:  heroku
heroku-local
this code is now in https://github.com/heroku/cli
Stars: ✭ 21 (-57.14%)
Mutual labels:  heroku
django-kcproject-starter
Kickstart Coding's Django Project Starter Template
Stars: ✭ 14 (-71.43%)
Mutual labels:  heroku
PokerTexter
SMS App for Poker Odds. Runs on Flask + Twilio + Heroku.
Stars: ✭ 17 (-65.31%)
Mutual labels:  heroku
react-phoenix-users-boilerplate
Elixir/Phoenix + React + users template/boilerplate.
Stars: ✭ 71 (+44.9%)
Mutual labels:  heroku
buildpacks-ruby
An experimental Cloud Native Buildpack for Ruby
Stars: ✭ 15 (-69.39%)
Mutual labels:  heroku
WPGlobus
WPGlobus is a family of WordPress plugins assisting you in making bilingual / multilingual WordPress blogs and sites. This is a development repository. The stable version is on WordPress.org.
Stars: ✭ 40 (-18.37%)
Mutual labels:  woocommerce
heroku-cli-oauth
this code is now in https://github.com/heroku/cli
Stars: ✭ 40 (-18.37%)
Mutual labels:  heroku
ak-cli
🔖 Collection of useful cli commands
Stars: ✭ 39 (-20.41%)
Mutual labels:  heroku
nlg-markovify-api
An API built on Plumber (R) utilizing Markovify, a Python package, wrapped in markovifyR (R). It builds a Markov Chain-model based on text (user input) and generates new text based on the model.
Stars: ✭ 19 (-61.22%)
Mutual labels:  heroku
starter-kit
Starter kit for full-stack JavaScript projects
Stars: ✭ 21 (-57.14%)
Mutual labels:  heroku
pydf
PDF generation in python using wkhtmltopdf for heroku and docker
Stars: ✭ 68 (+38.78%)
Mutual labels:  heroku
teller
Cloud native secrets management for developers - never leave your command line for secrets.
Stars: ✭ 998 (+1936.73%)
Mutual labels:  heroku
travel app
Travel App using Flutter 💙
Stars: ✭ 74 (+51.02%)
Mutual labels:  heroku
honeyku
A Heroku-based web honeypot that can be used to create and monitor fake HTTP endpoints (i.e. honeytokens).
Stars: ✭ 56 (+14.29%)
Mutual labels:  heroku
TGInlineGIF
Telegram Inline tenor gif search bot.
Stars: ✭ 19 (-61.22%)
Mutual labels:  heroku
Covid-19-API
A realtime API for coronavirus cases on Heroku. Data automatically updated every 10 minutes!
Stars: ✭ 59 (+20.41%)
Mutual labels:  heroku
odooku
Run Odoo as a service
Stars: ✭ 52 (+6.12%)
Mutual labels:  heroku
police-cad
This is a easy to setup and use police server CAD. Includes a signup/login for both Civilians and Police Officers. Also this is mobile friendly. Built for GTA V's Modding framework: FiveM.
Stars: ✭ 49 (+0%)
Mutual labels:  heroku

WordPress Heroku

This project is a template for installing and running WordPress on Heroku. The repository comes bundled with:

Installation

Clone the repository from Github

$ git clone git://github.com/php4dev/heroku-wordpress.git

With the Heroku gem, create your app

$ cd heroku-wordpress
$ heroku create
Creating strange-bird-1234... done, stack is cedar
http://strange-bird-1234.herokuapp.com/ | [email protected]:strange-bird-1234.git
Git remote heroku added

Add a database to your app

$ heroku addons:create heroku-postgresql
Creating HEROKU_POSTGRESQL_INSTANCE... done, (free)
Adding HEROKU_POSTGRESQL_INSTANCE to strange-bird-1234... done
Setting DATABASE_URL and restarting strange-bird-1234... done, v3
Database has been created and is available
 ! This database is empty. If upgrading, you can transfer
 ! data from another database with pgbackups:restore
Use `heroku addons:docs heroku-postgresql` to view documentation.

Promote the database (replace HEROKU_POSTGRESQL_INSTANCE with the name from the above output)

$ heroku pg:promote HEROKU_POSTGRESQL_INSTANCE
Promoting HEROKU_POSTGRESQL_INSTANCE to DATABASE_URL... done
Ensuring an alternate alias for existing DATABASE... done, HEROKU_POSTGRESQL_COLOR
Promoting HEROKU_POSTGRESQL_INSTANCE to DATABASE_URL on strange-bird-1234... done

Add the ability to send email (i.e. Password Resets etc)

$ heroku addons:create sendgrid:starter
Creating SENDGRID_INSTANCE... done, (free)
Adding SENDGRID_INSTANCE to strange-bird-1234... done
Setting SENDGRID_PASSWORD, SENDGRID_USERNAME and restarting strange-bird-1234... done, v7
Use `heroku addons:docs sendgrid` to view documentation.

Create a new branch for any configuration/setup changes needed

$ git checkout -b production

Store unique keys and salts in Heroku environment variables. Wordpress can provide random values here.

heroku config:set AUTH_KEY='put your unique phrase here' \
  SECURE_AUTH_KEY='put your unique phrase here' \
  LOGGED_IN_KEY='put your unique phrase here' \
  NONCE_KEY='put your unique phrase here' \
  AUTH_SALT='put your unique phrase here' \
  SECURE_AUTH_SALT='put your unique phrase here' \
  LOGGED_IN_SALT='put your unique phrase here' \
  NONCE_SALT='put your unique phrase here'

Deploy to Heroku

$ git push heroku production:master
-----> Deleting 0 files matching .slugignore patterns.
-----> PHP app detected

 !     WARNING: No composer.json found.
       Using index.php to declare PHP applications is considered legacy
       functionality and may lead to unexpected behavior.

-----> No runtime requirements in composer.json, defaulting to PHP 5.6.2.
-----> Installing system packages...
       - PHP 5.6.2
       - Apache 2.4.10
       - Nginx 1.6.0
-----> Installing PHP extensions...
       - zend-opcache (automatic; bundled, using 'ext-zend-opcache.ini')
-----> Installing dependencies...
       Composer version 1.0-dev (ffffab37a294f3383c812d0329623f0a4ba45387) 2014-11-05 06:04:18
       Loading composer repositories with package information
       Installing dependencies
       Nothing to install or update
       Generating optimized autoload files
-----> Preparing runtime environment...
       NOTICE: No Procfile, defaulting to 'web: vendor/bin/heroku-php-apache2'
-----> Discovering process types
       Procfile declares types -> web

-----> Compressing... done, 78.5MB
-----> Launcing... done, v5
       http://strange-bird-1234.herokuapp.com deployed to Heroku

To git@heroku:strange-bird-1234.git
  * [new branch]    production -> master

After deployment WordPress has a few more steps to setup and thats it!

Usage

Because a file cannot be written to Heroku's file system, updating and installing plugins or themes should be done locally and then pushed to Heroku.

Updating

Updating your WordPress version is just a matter of merging the updates into the branch created from the installation.

$ git pull # Get the latest

Using the same branch name from our installation:

$ git checkout production
$ git merge master # Merge latest
$ git push heroku production:master

WordPress needs to update the database. After push, navigate to:

http://your-app-url.herokuapp.com/wp-admin

WordPress will prompt for updating the database. After that you'll be good to go.

Deployment optimisation

If you have files that you want tracked in your repo, but do not need deploying (for example, *.md, *.pdf, *.zip). Then add path or linux file match to the .slugignore file & these will not be deployed.

Examples:

path/to/ignore/
bin/
*.md
*.pdf
*.zip
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].