Demo application running on PagodaBpx
You have 2 choices while setting up symfony 2 on pagoda adding the database infomation to the source or using external parameters(no need to include database username and password)
you need will need to change the following file in your symfony application app/config/parameters.ini
and app/config/config.yml
If you decide not to use external parameters replace %database.host%
, %database.name%
, %database.user%
and %database.password%
in 'app/config/parameters.ini' with the database infomation
;app/config/parameters.ini
[parameters]
database_driver = pdo_mysql
database_host = %database.host%
database_name = %database.name%
database_user = %database.user%
database_password = %database.password%
#app/config/config.yml
dbname: %database_name%
user: %database_user%
password: %database_password%
After changing the files push your application to github then go to pagodabox.com and create an application with a database
(External Parameters) Go to you application global vars in the pagodabox dash board and add the following variables using your database infomation
SYMFONY__DATABASE__HOST
SYMFONY__DATABASE__NAME
SYMFONY__DATABASE__USER
SYMFONY__DATABASE__PASSWORD
After you have do this you will need to create a tunnel to connect to your database
if you are using external parameters you will need to change app/config/parameters.ini
to your database infomation(dont push changes to github)
Now you can run php app/console doctrine:schema:create
to create the database schema. If you want you can reverst the app/config/config.yml
and app/config/parameters.ini
to match the one on github