forked from shopwareArchive/development
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·36 lines (25 loc) · 921 Bytes
/
update.sh
File metadata and controls
executable file
·36 lines (25 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#git -C platform reset --hard
#git -C platform pull --rebase
#git -C . pull --rebase
### Ersatz für "./psh.phar install" ###
rm composer.lock
rm vendor/shopware/platform
./psh.phar init-composer # siehe: dev-ops/common/actions/init-composer.sh
./psh.phar init-shopware # siehe: dev-ops/common/actions/init-shopware.sh
# Aktuelle Node Version verwenden (via Node Version Manager -- siehe: https://github.com/nvm-sh/nvm)
NVM_PATH=$(command -v nvm.sh)
if [ "${NVM_PATH}" != "" ] ; then
. ${NVM_PATH}
nvm use 12
fi
# Sämtliche node_modules Caches löschen ...
find . -type d -iname node_modules -exec rm -rf '{}' ';'
./psh.phar administration:init
./psh.phar storefront:install-dependencies
if [ "$1" = "--prod" ] || [ "$(grep "^APP_ENV" .env | sed -e "s/APP_ENV=//")" = "prod" ] ; then
./psh.phar storefront:build
else
./psh.phar storefront:dev
fi
# bin/console theme:change IcorpBaseTheme --all