Skip to content

Instantly share code, notes, and snippets.

@jsifalda
Created August 24, 2012 10:23
Show Gist options
  • Save jsifalda/3448859 to your computer and use it in GitHub Desktop.
Save jsifalda/3448859 to your computer and use it in GitHub Desktop.
Nette configurations for PagodaBox cloud hosting (Boxfile)
#config.neon
production < common:
includes:
- production.php
#Boxfile
web1:
name: app
shared_writable_dirs:
- temp
- log
document_root: www
php_version: 5.3.10
php_extensions:
- pdo_mysql
- mysql
- gd
- apc
- intl
- zip # for composer
after_build:
# - "if [ ! -f composer.phar ]; then curl -s http://getcomposer.org/installer | php; fi; php composer.phar install"
after_deploy:
- "rm -Rf temp/*"
- "rm -Rf log/*"
#Doctrine schema tool
# - "php app/doctrine-cli.php orm:schema-tool:drop --force"
# - "php app/doctrine-cli.php orm:schema-tool:create"
#- "php app/doctrine-cli.php dbal:import app/default-data.sql"
db1: #component type & number
name: app
type: mysql
/**
* production.php
*
* @author Jiří Šifalda <sifalda.jiri@gmail.com>
*/
return array(
'parameters' => array(
'database' => array(
'host' => (isset($_SERVER['DB1_HOST'])) ? $_SERVER['DB1_HOST'] : '',
'dbname' => (isset($_SERVER['DB1_NAME'])) ? $_SERVER['DB1_NAME'] : '',
'user' => (isset($_SERVER['DB1_USER'])) ? $_SERVER['DB1_USER'] : '',
'password' => (isset($_SERVER['DB1_PASS'])) ? $_SERVER['DB1_PASS'] : '',
'port' => (isset($_SERVER['DB1_PORT'])) ? $_SERVER['DB1_PORT'] : 3306,
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment