Compare commits
3 Commits
e03dd0aaf7
...
819f8b35b9
| Author | SHA1 | Date | |
|---|---|---|---|
| 819f8b35b9 | |||
| 0e97468f7d | |||
| 9f9ee82c6b |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,6 +5,7 @@
|
|||||||
/public/bundles/
|
/public/bundles/
|
||||||
/var/
|
/var/
|
||||||
/vendor/
|
/vendor/
|
||||||
|
/migrations/
|
||||||
###< symfony/framework-bundle ###
|
###< symfony/framework-bundle ###
|
||||||
|
|
||||||
###> phpunit/phpunit ###
|
###> phpunit/phpunit ###
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ shell_exec("COMPOSE_ALLOW_SUPERUSER=1 composer update");
|
|||||||
//`symfony console asset-map:compile");
|
//`symfony console asset-map:compile");
|
||||||
|
|
||||||
print "Creating database schema".PHP_EOL;
|
print "Creating database schema".PHP_EOL;
|
||||||
shell_exec("symfony console doctrine:database:create");
|
shell_exec("symfony console doctrine:database:create --if-not-exists");
|
||||||
|
|
||||||
print "Updating migrations and setting permissions for data folder".PHP_EOL;
|
print "Updating migrations and setting permissions for data folder".PHP_EOL;
|
||||||
shell_exec("symfony console doctrine:migrations:migrate --no-interaction");
|
shell_exec("symfony console doctrine:schema:create");
|
||||||
|
|
||||||
shell_exec("chown -R www-data:www-data /data");
|
shell_exec("chown -R www-data:www-data /data");
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ if ($getCreds) {
|
|||||||
$db_port = (isset($cmd['pgsql']) ? 5432 : 3306);
|
$db_port = (isset($cmd['pgsql']) ? 5432 : 3306);
|
||||||
$db_name = 'sermon_notes';
|
$db_name = 'sermon_notes';
|
||||||
$db_user = 'root';
|
$db_user = 'root';
|
||||||
$pwd = `openssl rand -base64 32 | tr -d '=' | tr -d '+' | tr -d '/' | tr -d ' '`;
|
$pwd = shell_exec("openssl rand -base64 32 | tr -d '=' | tr -d '+' | tr -d '/' | tr -d ' '");
|
||||||
$db_password = substr($pwd, 0, 32);
|
$db_password = substr($pwd, 0, 32);
|
||||||
|
|
||||||
if (isset($cmd['pgsql'])) {
|
if (isset($cmd['pgsql'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user