From 269852442d61b0e5410e44ee932f2d6bed9f637b Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 3 Feb 2026 15:43:07 +0000 Subject: add deploy script --- deploy.sh | 19 +++++++++++++++++++ static/index.html | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..17212dc --- /dev/null +++ b/deploy.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +cargo build --release + +sudo systemctl stop skal-server +sudo cp target/release/skal_server /opt/skal_server/skal_server +sudo cp -R static/*html /opt/skal_server/static +sudo chmod +x /opt/skal_server/skal_server + +sudo systemctl restart skal-server +sudo systemctl status skal-server +curl -X POST "https://www.taar-o.com/api/echo?name=ProdTest" + +echo +echo +echo " === RELAUNCH NGINX ===" +echo +sudo nginx -t +sudo systemctl reload nginx diff --git a/static/index.html b/static/index.html index 393be43..ded1da3 100644 --- a/static/index.html +++ b/static/index.html @@ -320,7 +320,7 @@ function go() {
- (c) MASSIMINO Pascal - Metaskal.com + (c) 2026 - www.metaskal.com
-- cgit v1.2.3