Created
August 24, 2012 10:23
-
-
Save jsifalda/3448859 to your computer and use it in GitHub Desktop.
Nette configurations for PagodaBox cloud hosting (Boxfile)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#config.neon | |
production < common: | |
includes: | |
- production.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* production.php | |
* | |
* @author Jiří Šifalda <[email protected]> | |
*/ | |
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