Skip to content

Instantly share code, notes, and snippets.

View sanderson's full-sized avatar

Scott Anderson sanderson

View GitHub Profile
@sanderson
sanderson / Composer on Pagoda Box
Created May 14, 2013 21:29
Using Composer on Pagoda Box
web1:
after_build:
- "if [ ! -f composer.phar ]; then curl -s http://getcomposer.org/installer | php; fi; php composer.phar install"
php_extensions:
- zip
- curl
@sanderson
sanderson / PHP Version in the Boxfile
Created May 10, 2013 22:30
Specifying your PHP version in your Boxfile
web1:
php_version: 5.4.14
@sanderson
sanderson / .pagodarc
Created March 7, 2013 20:57
.pagodarc Example
---
:help: false
:a:
:h: false
:username: your_username
:u: your_username
:password: your_password
:p: your_password
commands:
:init: {}
@sanderson
sanderson / Redis_Sessions
Created January 22, 2013 23:10
Redis Session in the Boxfile
web1:
php_extensions:
- redis
php_session_save_handler: redis
php_session_save_path: "tcp://tunnel.pagodabox.com:6379"
@sanderson
sanderson / gist:4111377
Created November 19, 2012 15:46
Sample Boxfile
web1:
name: myapp
php_version: 5.3.10
php_extensions:
- mysql
- redis
- gd
shared_writable_dirs:
- app/usr/uploads
web1:
php_extensions:
- gd
- pspell
- xml
- mysql
db1:
type: mysql
@sanderson
sanderson / gist:1894455
Created February 23, 2012 19:17
Environment Vars in the Boxfile
global:
env:
- APP_NAME: lucy
- ENV: production
- API_KEY: blahblahblahblahblah
@sanderson
sanderson / gist:1713178
Created January 31, 2012 21:49
Sample Deploy Hooks
web1:
after_build:
- "php /scripts/random-script.php"
before_deploy:
- "bash /scripts/migrate-db.sh"
after_deploy:
- "php /clear-cache.php"
@sanderson
sanderson / Boxfile
Created December 14, 2011 17:01
Boxfile
web1:
shared_writable_dirs:
- /uploads
@sanderson
sanderson / gist:1119079
Created August 1, 2011 21:42
Default .box File
network_writable_dirs: []
php_version: 5.3.6
php_extensions:
- mysql
php_error_reporting: E_ALL
php_display_errors: "On"
php_short_open_tag: "On"
php_default_mimetype: text/html
php_date_timezone: US/central
php_max_execution_time: "30"