Compare commits

...

3 Commits

Author SHA1 Message Date
819f8b35b9 upd: gitignore
add migrations folder to gitignore
2026-03-27 15:49:08 -04:00
0e97468f7d upd: install
update migration commands to use entities instead of migration scripts
2026-03-27 15:48:07 -04:00
9f9ee82c6b upd: setup
remove backticks
2026-03-27 15:46:46 -04:00
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@@ -5,6 +5,7 @@
/public/bundles/ /public/bundles/
/var/ /var/
/vendor/ /vendor/
/migrations/
###< symfony/framework-bundle ### ###< symfony/framework-bundle ###
###> phpunit/phpunit ### ###> phpunit/phpunit ###

View File

@@ -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");

View File

@@ -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'])) {