This repository has been archived by the owner on Jun 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test aws upload and move to clever-cloud hosting
- Loading branch information
1 parent
7fe3d8e
commit dd1ef8f
Showing
19 changed files
with
642 additions
and
364 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"apps":[{"app_id":"app_38a5484e-81c3-4973-af23-291dce11841b","deploy_url":"https://github.com/romainnorberg/construct-tim.git","name":"construct-tim","alias":"construct-tim"}]} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,31 @@ | ||
<?php | ||
|
||
# https://help.fortrabbit.com/secrets | ||
|
||
$secrets = json_decode(file_get_contents($_SERVER['APP_SECRETS']), true); | ||
|
||
# database | ||
$container->setParameter('database_driver', 'pdo_mysql'); | ||
$container->setParameter('database_host', $secrets['MYSQL']['HOST']); | ||
$container->setParameter('database_name', $secrets['MYSQL']['DATABASE']); | ||
$container->setParameter('database_user', $secrets['MYSQL']['USER']); | ||
$container->setParameter('database_password', $secrets['MYSQL']['PASSWORD']); | ||
$container->setParameter('database_host', getenv('MYSQL_ADDON_HOST')); | ||
$container->setParameter('database_name', getenv('MYSQL_ADDON_DB')); | ||
$container->setParameter('database_user', getenv('MYSQL_ADDON_USER')); | ||
$container->setParameter('database_password', getenv('MYSQL_ADDON_PASSWORD')); | ||
|
||
# mailer | ||
$container->setParameter('mailer_transport', 'smtp'); | ||
$container->setParameter('mailer_host', $secrets['CUSTOM']['MAILER_HOST']); | ||
$container->setParameter('mailer_user', $secrets['CUSTOM']['MAILER_USER']); | ||
$container->setParameter('mailer_password', $secrets['CUSTOM']['MAILER_PASSWORD']); | ||
$container->setParameter('mailer_sender', $secrets['CUSTOM']['MAILER_SENDER']); | ||
$container->setParameter('mailer_host', getenv('MAILER_HOST')); | ||
$container->setParameter('mailer_user', getenv('MAILER_USER')); | ||
$container->setParameter('mailer_password', getenv('MAILER_PASSWORD')); | ||
$container->setParameter('mailer_sender', getenv('MAILER_SENDER')); | ||
|
||
# locale | ||
$container->setParameter('locale', 'fr'); | ||
|
||
# rollbar | ||
$container->setParameter('rollbar_server_access_token', $secrets['CUSTOM']['ROLLBAR_SERVER_ACCESS_TOKEN']); | ||
$container->setParameter('rollbar_client_access_token', $secrets['CUSTOM']['ROLLBAR_CLIENT_ACCESS_TOKEN']); | ||
$container->setParameter('rollbar_environment', $secrets['CUSTOM']['ROLLBAR_ENVIRONMENT']); | ||
$container->setParameter('rollbar_server_access_token', getenv('ROLLBAR_SERVER_ACCESS_TOKEN')); | ||
$container->setParameter('rollbar_client_access_token', getenv('ROLLBAR_CLIENT_ACCESS_TOKEN')); | ||
$container->setParameter('rollbar_environment', getenv('ROLLBAR_ENVIRONMENT')); | ||
|
||
# ewz_recaptcha | ||
$container->setParameter('ewz_recaptcha_public_key', $secrets['CUSTOM']['EWZ_RECAPTCHA_PUBLIC_KEY']); | ||
$container->setParameter('ewz_recaptcha_private_key', $secrets['CUSTOM']['EWZ_RECAPTCHA_PRIVATE_KEY']); | ||
$container->setParameter('ewz_recaptcha_public_key', getenv('EWZ_RECAPTCHA_PUBLIC_KEY')); | ||
$container->setParameter('ewz_recaptcha_private_key', getenv('EWZ_RECAPTCHA_PRIVATE_KEY')); | ||
|
||
# s3 permissions | ||
$container->setParameter('s3_credentials_key', $secrets['CUSTOM']['S3_CREDENTIALS_KEY']); | ||
$container->setParameter('s3_credentials_secret', $secrets['CUSTOM']['S3_CREDENTIALS_SECRET']); | ||
$container->setParameter('s3_credentials_key', getenv('S3_CREDENTIALS_KEY')); | ||
$container->setParameter('s3_credentials_secret', getenv('S3_CREDENTIALS_SECRET')); |
This file contains 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
This file contains 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
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
php bin/console doctrine:schema:update --dump-sql | ||
php bin/console doctrine:schema:update --force |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"license": "7a7ec9c0a0c9d8ba6bd93f1592726e8040272dcd", | ||
"appname": "Contruct-tim" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"deploy": { | ||
"webroot": "/web" | ||
}, | ||
"hooks": { | ||
"postDeploy": "clevercloud/ccbuild.sh" | ||
} | ||
} |
This file contains 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
Oops, something went wrong.