A WordPress site and custom theme hosted on RHC's OpenShift platform
PHP JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.openshift
docs
wp-admin
wp-content
wp-includes
.gitignore
.htaccess
README.md
index.php
license.txt
readme.html
wp-activate.php
wp-blog-header.php
wp-comments-post.php
wp-config-sample.php
wp-config.php
wp-cron.php
wp-links-opml.php
wp-load.php
wp-login.php
wp-mail.php
wp-settings.php
wp-signup.php
wp-trackback.php
xmlrpc.php

README.md

Installing this Wordpress / Sanitary Panels Site Locally

  1. Set up a MySQL database called wp_os_sp and grant all privileges to user wp_os_sp
  2. git clone git@github.com:michaelsnook/sanitary-panels.git.
  3. Run your MySQL server and point Apache at the /sanitary-panels folder you just cloned.
  4. Install Wordpress, create users, add sample posts.
  5. Set default post type to image and default category to comics.
  6. Create a menu with items for "About", "Archive" and "Store", and give them the title attributes sprite-about, sprite-archive and sprite-store. Check the box for "Primary Navigation" to activates some hacky styling found in _sprites.css. (See screencap in docs/.)
  7. Gulp works just fine if you make sure you're on npm v4.2 or more. In the theme folder (wp-content/themes/sanitary-panels), run npm install && bower install the first time, and then you can gulp or gulp --watch to compile assets and view the site locally.

Deploying with OpenShift (RedHat Cloud)

This repo started using the template "RedHat OpenShift WordPress Developer QuickStart Guide". You can see the original how-to in docs/OPENSHIFT.md. To deploy this repo as an OpenShift site, create an account, create an app, git commit, make sure your RedHat Cloud repository has a git remote, and git push RHC_REMOTE_NAME.

Beware the ephemeral filesystem -- it's not as bad as Heroku, but it will wipe out your media/uploads folder, so be sure you connect to s3.