build(client-web): 🚀 Update client build script
Build client script with uploading package to server
This commit is contained in:
parent
47357e7ab4
commit
37c182729b
5 changed files with 27 additions and 8 deletions
|
|
@ -1,14 +1,8 @@
|
|||
-- terminal
|
||||
|
||||
cd client
|
||||
npm build
|
||||
// อยู่ /taobin_recipe_manager
|
||||
|
||||
-- send release
|
||||
|
||||
(current folder: client)
|
||||
cd dist
|
||||
zip -r client.zip client/
|
||||
scp client.zip recipe@10.11.77.50:/home/recipe/taobin_recipe_manager/
|
||||
./build_client.sh
|
||||
|
||||
|
||||
-- on server
|
||||
|
|
@ -16,3 +10,10 @@ scp client.zip recipe@10.11.77.50:/home/recipe/taobin_recipe_manager/
|
|||
ssh recipe@10.11.77.50
|
||||
cd taobin_recipe_manager
|
||||
sudo ./updateByBinaryRelease.sh
|
||||
|
||||
^------ เช็คว่ามี client.zip อยู่ในโฟลเดอร์ด้วย
|
||||
|
||||
Manual upload (NoBuild)
|
||||
|
||||
cd client/dist/
|
||||
./uploadBinaryClient
|
||||
Loading…
Add table
Add a link
Reference in a new issue