Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init script: anything below composer install is not executed #15

Open
ostrolucky opened this issue Oct 25, 2017 · 3 comments
Open

init script: anything below composer install is not executed #15

ostrolucky opened this issue Oct 25, 2017 · 3 comments

Comments

@ostrolucky
Copy link
Contributor

This is not run when running ./ops init

echo -e "\e[30;48;5;82m INITIALIZE DATABASE \e[0m"
sudo -u ${SUDO_USER} ./ops bin/console d:d:c --if-not-exists
sudo -u ${SUDO_USER} ./ops bin/console d:s:u --force
./infrastructure/bin/fix-permissions

This is the last output before terminating:

Sessions still open, not unmounting

Possible fix:

--- ops	(date 1508933014000)
+++ ops	(revision )
@@ -73,7 +73,7 @@
         ;;
     composer)
         shift 1
-        $COMPOSE exec cli composer "$@"
+        $COMPOSE run cli composer "$@"
         ;;
     npm)
         shift 1
@ostrolucky
Copy link
Contributor Author

This is no longer the case, maybe it was related to cache clearing script of symfony beta version

@klinec
Copy link
Contributor

klinec commented Dec 7, 2017

It's happening again. Quick fix is to add || true after composer install command
sudo -u ${SUDO_USER} ./ops composer install || true

@ostrolucky ostrolucky reopened this Dec 7, 2017
@ivanbarlog
Copy link
Contributor

ivanbarlog commented Jan 17, 2018

In some versions of Symfony you need to run clear:cache with --no-warmup option otherwise it returns non-zero code which stops the execution. The whole init script should be revisited but I guess it's good start for the project and you can still adjust it for your needs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants