Skip to content

Commit c1bc2cb

Browse files
committed
Run drush deploy on create
fixes #23
1 parent 0219960 commit c1bc2cb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

local/etc/uceap.d/devcontainer_on_create.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ function devcontainer_on_create() {
5050
sudo find web/sites/default/files -type d -exec chmod g+ws {} +
5151
sudo find web/sites/default/files -type f -exec chmod g+w {} +
5252

53+
# The database image might be out of date so deploy any new changes from code
54+
vendor/bin/drush cr
55+
vendor/bin/drush $DRUSH_TASK
5356

5457
# Setup drush and other vendor binaries
5558
echo "export PATH=\"`pwd`/vendor/bin:\$PATH\"" | tee -a ~/.bashrc ~/.zshrc ~/.zshrc.local

0 commit comments

Comments
 (0)