generated from yandex-praktikum/client-server-template-with-vite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
"dev:ssr": "lerna run ssr --scope=client", | ||
"dev:server": "lerna run dev --scope=server", | ||
"dev": "lerna run dev", | ||
"deploy": "rsync -av --exclude={'node_modules','dist','.git','tmp','uploads','.idea','ssl','yarn.lock'} . [email protected]:/home/cyb/", | ||
"deploy": "rsync -av --exclude={'node_modules','dist','.git','tmp','uploads','.idea','ssl','yarn.lock'} . [email protected]:/home/cyb/ && ssh [email protected] 'cd /home/cyb/ && ./rebuild.sh'", | ||
"test": "lerna run test", | ||
"lint": "lerna run lint", | ||
"format": "lerna run format", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
docker stop $(docker ps -a -q) | ||
docker rm $(docker ps -a -q) | ||
docker image rm cyb-client cyb-server cyb-nginx | ||
docker-compose build nginx server client | ||
docker-compose up -d | ||
echo "***************************************************" | ||
echo "*** site has been rebuilt ***" | ||
echo "***************************************************" |