Git Product home page Git Product logo

willhlaw / wordpress-heroku-with-cleardb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from masainox/wordpress-heroku-with-cleardb

0.0 2.0 0.0 6.46 MB

Wordpress Javascript Playground on Heroku using mysql (cleardb). Experimenting with modifying wordpress plugin, simplemap.

Home Page: http://wp-js-playground.herokuapp.com/?page_id=11

License: Other

PHP 78.31% CSS 8.25% JavaScript 13.45%

wordpress-heroku-with-cleardb's Introduction

WordPress Heroku with ClearDB

Installation

Create your app

$ heroku create YOUR_APP_NAME  -s cedar -b git://github.com/iphoting/heroku-buildpack-php-tyler.git

Add a database to your app

$ heroku addons:add cleardb:ignite

Create a new branch for any configuration/setup changes needed

$ git checkout -b production

Copy the "wp-config.php"

$ cp wp-config-sample.php wp-config.php

Update unique keys and salts in wp-config.php on lines 48-55. Wordpress can provide random values here.

define('AUTH_KEY',         'put your unique phrase here');
define('SECURE_AUTH_KEY',  'put your unique phrase here');
define('LOGGED_IN_KEY',    'put your unique phrase here');
define('NONCE_KEY',        'put your unique phrase here');
define('AUTH_SALT',        'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT',   'put your unique phrase here');
define('NONCE_SALT',       'put your unique phrase here');

Commit wp-config.php

$ git add wp-config.php
$ git commit -m "Initial WordPress commit"

Deploy to Heroku

$ git push heroku production:master

Switch language

$ heroku config:add WORDPRESS_LANG=ja # ja
$ heroku config:add WORDPRESS_LANG='' # en

wordpress-heroku-with-cleardb's People

Contributors

willhlaw avatar masainox avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.