Skip to content
Snippets Groups Projects
Unverified Commit 9bea09cb authored by Sebastian Castro's avatar Sebastian Castro
Browse files

fix again migration and gogo-update

parent d88a446b
No related branches found
No related tags found
No related merge requests found
......@@ -119,10 +119,10 @@ cs-fix: ## Run php-cs-fixer and fix the code
gogo-update: ## Update a PROD server to the lastest version of gogocarto
$(GIT) reset --hard master
$(GIT) pull origin master
COMPOSER_MEMORY_LIMIT=-1 $(COMPOSER) install
$(YARN) install
$(GULP) build
$(GULP) production
$(YARN) encore production
COMPOSER_MEMORY_LIMIT=-1 $(COMPOSER) install
make purge
$(SYMFONY) db:migrate
\ No newline at end of file
$(YARN) encore production
$(SYMFONY) db:migrate
make purge
\ No newline at end of file
......@@ -94,7 +94,7 @@ class MigrationCommand extends GoGoAbstractCommand
try {
// Collecting the Database to be updated
$dbs = ['']; // default DB
$dbs = [$_ENV['DATABASE_NAME']]; // default DB
$dbNames = $dm->createQueryBuilder('App\Document\Project')->select('domainName')->hydrate(false)->getQuery()->execute()->toArray();
foreach ($dbNames as $object) {
$dbs[] = $object['domainName'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment