Permalink
Browse files

updated for postgres

  • Loading branch information...
1 parent 7dded4f commit 2751517e4a41f5510a348ce072bcf4229c349905 @jerrod committed Oct 5, 2013
Showing with 4 additions and 144 deletions.
  1. +1 −1 README.markdown
  2. +1 −1 bin/compile
  3. +2 −1 support/package_php
  4. +0 −55 support/wordup
  5. +0 −86 support/wordup.markdown
View
2 README.markdown
@@ -1,4 +1,4 @@
-# Heroku buildpack: Wordpress on Heroku
+# Heroku buildpack: Wordpress on Heroku with Postgresql
### This is a Heroku buildpack for running [Wordpress](http://wordpress.org) on [Heroku](http://heroku.com)
View
2 bin/compile
@@ -8,7 +8,7 @@ set -o pipefail
NGINX_VERSION=1.3.11
PHP_VERSION=5.4.11
WORDPRESS_VERSION=3.6
-S3_BUCKET=heroku-buildpack-wordpress
+S3_BUCKET=buildpacks.reccenter.com
# END CONFIG
#
View
3 support/package_php
@@ -38,6 +38,7 @@ tar xzvf php.tgz
vulcan build -v -s php-$PHP_VERSION -o $tempdir/php-$PHP_VERSION-with-fpm-heroku.tar.gz -p /app/vendor/php -c \
"./configure --prefix=/app/vendor/php \
--with-mysql \
+ --with-pgsql \
--with-pdo-mysql \
--with-iconv \
--with-gd \
@@ -68,7 +69,7 @@ vulcan build -v -s php-$PHP_VERSION -o $tempdir/php-$PHP_VERSION-with-fpm-heroku
&& make install \
&& /app/vendor/php/bin/pear config-set php_dir /app/vendor/php \
&& yes '' | /app/vendor/php/bin/pecl install memcache \
- && yes '' | /app/vendor/php/bin/pecl install apc-3.1.14"
+ && yes '' | /app/vendor/php/bin/pecl install apc-3.1.13"
# upload to s3
$basedir/aws/s3 put $S3_BUCKET php-$PHP_VERSION-with-fpm-heroku.tar.gz $tempdir/php-$PHP_VERSION-with-fpm-heroku.tar.gz
View
55 support/wordup
@@ -1,55 +0,0 @@
-#!/usr/bin/env sh
-
-RETVAL=0
-
-function indent() {
- c='s/^/ /'
- case $(uname) in
- Darwin) sed -l "$c";;
- *) sed -u "$c";;
- esac
-}
-
-case "$1" in
- "")
- echo "Usage: $0 [-c|--create] [-d|--destroy] your_wordpress_site"
- RETVAL=1
- ;;
- --create|-c)
- instance_name=$2
-
- echo "-----> Installing Wordpress on Heroku"
- git clone git://github.com/mchung/wordpress-on-heroku.git $instance_name | indent
- cd $instance_name
-
- echo "-----> Acquiring Heroku dynos"
- heroku create \
- --stack cedar \
- --buildpack https://github.com/mchung/heroku-buildpack-wordpress.git $instance_name | indent
-
- echo "-----> Create custom production branch"
- git co -b production
-
- echo "-----> Engage!"
- git push heroku production:master | indent
- echo "Opening http://${instance_name}.herokuapp.com"
- heroku apps:open --app ${instance_name}
- ;;
-
- --destroy|-d)
- instance_name=$2
-
- echo "-----> Uninstalling Wordpress (${instance_name}) :("
- heroku destroy --app $instance_name
-
- echo "-----> Your local copy will remain untouched."
- echo ""
-
- # if [ -f ./$instance_name/setup/wp-config.php ]; then
- # echo "-----> Erasing local copy"
- # rm -rf $instance_name | indent
- # fi
- ;;
-esac
-
-exit $RETVAL
View
86 support/wordup.markdown
@@ -1,86 +0,0 @@
-# Wordup automatically sets up Wordpress on Heroku.
-
-Install Wordpress in < 60 seconds.
-
-## Who are you?
-
-1. Someone who uses Wordpress. Perhaps a developer, which is why you're reading this on GitHub.com
-2. Someone who is comfortable with the command line. Perhaps a developer, which is why you're still reading this.
-3. Someone who likes to help their friends get up and running with Wordpress, but hates the setup, security, and ongoing maintenance (cleaning up logs, upgrading instances, locking down Wordpress, performance, etc.)
-
-## Here's what you get
-
-```
-$ time wordup -c new-wordpress-site
------> Installing Wordpress on Heroku
- Cloning into 'new-wordpress-site'...
-remote: Counting objects: 166, done.
-remote: Compressing objects: 100% (121/121), done.
-remote: Total 166 (delta 37), reused 166 (delta 37)
-Receiving objects: 100% (166/166), 1.04 MiB | 25 KiB/s, done.
-Resolving deltas: 100% (37/37), done.
------> Acquiring Heroku dynos
- Creating new-wordpress-site... done, stack is cedar
- BUILDPACK_URL=https://github.com/mchung/heroku-buildpack-wordpress.git
- http://new-wordpress-site.herokuapp.com/ | git@heroku.com:new-wordpress-site.git
- Git remote heroku added
------> Create custom production branch
-Switched to a new branch 'production'
------> Engage!
-Counting objects: 166, done.
-Delta compression using up to 4 threads.
-Compressing objects: 100% (121/121), done.
-Writing objects: 100% (166/166), 1.04 MiB | 178 KiB/s, done.
-Total 166 (delta 37), reused 166 (delta 37)
------> Fetching custom git buildpack... done
------> Wordpress app detected
------> Installing Nginx v1.3.11
------> Installing PHP v5.4.11
------> Installing Wordpress v3.5.1
------> Writing start.sh script
------> Done with compile
------> Discovering process types
- Procfile declares types -> (none)
- Default types for Wordpress -> web
------> Compiled slug size: 34.4MB
------> Launching... done, v7
- http://new-wordpress-site.herokuapp.com deployed to Heroku
-
-To git@heroku.com:new-wordpress-site.git
- * [new branch] production -> master
-Opening new-wordpress-site... done
-
-real 2m2.875s
-user 0m4.497s
-sys 0m0.389s
-```
-
-## Usage
-
- Usage: wordup [-c|--create] [-d|--destroy] your_wordpress_site
-
-## Example
-
-### Create a Wordpress instance
-
- wordup -c new_shiny_wordpress
-
-### Destroy a Wordpress instance
-
- wordup -d new_shiny_wordpress
-
-## How to install themes or plugins
-
-You can't upload files to Heroku because of their ephemeral filesystem. If you want to add themes or plugins, you'll need to use the following instructions:
-
-Copy your themes or plugins into `setup/wp-content/plugins` or `setup/wp-content/themes`.
-
- git add wp-content
- git commit -m "New widgets"
- git push heroku master
-
-## Requirements, Gotchas, and Other notes
-
-* Installs Wordpress 3.5.1
-* Requires git.
-* Requires a Heroku account.

0 comments on commit 2751517

Please sign in to comment.