Skip to content

Instantly share code, notes, and snippets.

View sanderson's full-sized avatar

Scott Anderson sanderson

View GitHub Profile
@sanderson
sanderson / wpboxfile
Created March 30, 2011 17:19
Default Wordpress .box File
general:
writable_directories: [ /wp-content/uploads/ ]
php:
display_errors: off
upload_max_filesize: 20M
@sanderson
sanderson / wpdbsettings
Created March 31, 2011 16:59
Example of Pagoda Box WP DB Settings
define('DB_NAME', 'armandina');
/** MySQL database username */
define('DB_USER', 'ila');
/** MySQL database password */
define('DB_PASSWORD', 'z4rolVrp');
/** MySQL hostname */
define('DB_HOST', 'localhost:/tmp/mysql/armandina.sock');
@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"
@sanderson
sanderson / Boxfile
Created December 14, 2011 17:01
Boxfile
web1:
shared_writable_dirs:
- /uploads
@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 / gist:1894455
Created February 23, 2012 19:17
Environment Vars in the Boxfile
global:
env:
- APP_NAME: lucy
- ENV: production
- API_KEY: blahblahblahblahblah
web1:
php_extensions:
- gd
- pspell
- xml
- mysql
db1:
type: mysql
@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
@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 / .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: {}