Skip to content

Commit

Permalink
Replace app/console by bin/console in bin init scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cocolabssas committed Mar 21, 2019
1 parent 63d20bc commit 33e7678
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ bin/doctrine.bat
bin/security-checker
bin/security-checker.bat

composer.dev.json
composer.phar
.idea/*

Expand Down Expand Up @@ -56,21 +57,21 @@ web/images/Thumbs.db
web/assets/*
web/Thumbs.db
web/sitemap.xml
web/phpdocs/*

watch


C_local.0
C_local.ns
*.php~
*.patch

behat.yml

features/_datas/cocorico_test.db
tmp/patch

php
/php
web/myco*.php

/auth.json
Expand Down
2 changes: 1 addition & 1 deletion bin/init-db
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ then
exit 1
fi

# "${PHP_ARG}" app/console doctrine:database:drop --force "${ENV_ARG}"
# "${PHP_ARG}" bin/console doctrine:database:drop --force "${ENV_ARG}"
"${PHP_ARG}" bin/console doctrine:database:create --if-not-exists "${ENV_ARG}"
"${PHP_ARG}" bin/console doctrine:schema:update --force "${ENV_ARG}"
"${PHP_ARG}" bin/console doctrine:fixtures:load "${ENV_ARG}"
Expand Down
10 changes: 5 additions & 5 deletions bin/init-db.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
REM DB initialisation
REM Usage: .\bin\init-db.bat --env=dev

REM php app/console doctrine:database:drop --force %*
php app/console doctrine:database:create --if-not-exists %*
php app/console doctrine:schema:update --force %*
php app/console doctrine:fixtures:load %*
php app/console cocorico:currency:update %*
REM php bin/console doctrine:database:drop --force %*
php bin/console doctrine:database:create --if-not-exists %*
php bin/console doctrine:schema:update --force %*
php bin/console doctrine:fixtures:load %*
php bin/console cocorico:currency:update %*


4 changes: 2 additions & 2 deletions bin/init-mongodb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ then
exit 1
fi

"${PHP_ARG}" app/console doctrine:mongodb:schema:drop "${ENV_ARG}"
"${PHP_ARG}" app/console doctrine:mongodb:schema:create "${ENV_ARG}"
"${PHP_ARG}" bin/console doctrine:mongodb:schema:drop "${ENV_ARG}"
"${PHP_ARG}" bin/console doctrine:mongodb:schema:create "${ENV_ARG}"

4 changes: 2 additions & 2 deletions bin/init-mongodb.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
REM Mongo DB initialisation
REM Usage: .\bin\init-mongodb.bat --env=dev

php app/console doctrine:mongodb:schema:drop %*
php app/console doctrine:mongodb:schema:create %*
php bin/console doctrine:mongodb:schema:drop %*
php bin/console doctrine:mongodb:schema:create %*

10 changes: 5 additions & 5 deletions bin/update-app.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ REM Usage: .\bin\update-app.bat --env=dev
REM In case of error : php composer.phar install --prefer-source -vvv
php composer.phar install --prefer-dist -vvv

php app/console doctrine:schema:update --force %*
php app/console doctrine:mongodb:schema:update %*
php app/console cache:clear %*
php app/console assets:install --symlink web %*
php app/console assetic:dump %*
php bin/console doctrine:schema:update --force %*
php bin/console doctrine:mongodb:schema:update %*
php bin/console cache:clear %*
php bin/console assets:install --symlink web %*
php bin/console assetic:dump %*

0 comments on commit 33e7678

Please sign in to comment.