fix build problem (#347)
* fix build problem * fix fully remove S-UI panel in README.md * fix frontend build problem (npm install before build frontend) * web/html folder dosent exist at the fisrt place
This commit is contained in:
@@ -51,6 +51,8 @@ bash <(curl -Ls https://raw.githubusercontent.com/alireza0/s-ui/master/install.s
|
||||
## Uninstall S-UI
|
||||
|
||||
```sh
|
||||
sudo -i
|
||||
|
||||
systemctl disable sing-box --now
|
||||
systemctl disable s-ui --now
|
||||
|
||||
@@ -59,6 +61,8 @@ rm -f /etc/systemd/system/sing-box.service
|
||||
systemctl daemon-reload
|
||||
|
||||
rm -fr /usr/local/s-ui
|
||||
rm /usr/bin/s-ui
|
||||
|
||||
```
|
||||
|
||||
## Install using Docker
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd frontend
|
||||
npm i
|
||||
npm run build
|
||||
|
||||
cd ..
|
||||
cd backend
|
||||
echo "Backend"
|
||||
|
||||
mkdir -p web/html
|
||||
rm -fr web/html/*
|
||||
cp -R ../frontend/dist/ web/html/
|
||||
cp -R ../frontend/dist/* web/html/
|
||||
|
||||
go build -o ../sui main.go
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "frontend",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "frontend",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"dependencies": {
|
||||
"@mdi/font": "7.4.47",
|
||||
"axios": "^1.7.4",
|
||||
|
||||
Reference in New Issue
Block a user