22 lines
234 B
Bash
Executable File
22 lines
234 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -e
|
|
|
|
rm -rf dist
|
|
|
|
yarn run build
|
|
|
|
file=$(npm pack | tail -1)
|
|
|
|
sudo docker-compose stop
|
|
rm -rf docker
|
|
mkdir docker
|
|
sudo docker-compose up -d
|
|
|
|
sleep 5
|
|
|
|
cd docker
|
|
|
|
npm install "../$file"
|
|
|
|
sudo docker-compose restart
|