3 Commits
Author SHA1 Message Date
ryan 819f8b35b9 upd: gitignore
add migrations folder to gitignore
2026-03-27 15:49:08 -04:00
ryan 0e97468f7d upd: install
update migration commands to use entities instead of migration scripts
2026-03-27 15:48:07 -04:00
ryan 9f9ee82c6b upd: setup
remove backticks
2026-03-27 15:46:46 -04:00
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -5,6 +5,7 @@
/public/bundles/
/var/
/vendor/
/migrations/
###< symfony/framework-bundle ###
###> phpunit/phpunit ###
+2 -2
View File
@@ -7,10 +7,10 @@ shell_exec("COMPOSE_ALLOW_SUPERUSER=1 composer update");
//`symfony console asset-map:compile");
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;
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");
+1 -1
View File
@@ -53,7 +53,7 @@ if ($getCreds) {
$db_port = (isset($cmd['pgsql']) ? 5432 : 3306);
$db_name = 'sermon_notes';
$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);
if (isset($cmd['pgsql'])) {