added deploy scripts for backend and frontend (use in the folder and while in the vpn)

This commit is contained in:
Kim 2023-09-18 15:43:07 +02:00
parent 13fabb8e16
commit 651f2974c4
3 changed files with 4 additions and 2 deletions

1
csharp/App/Backend/deploy.sh Executable file
View File

@ -0,0 +1 @@
dotnet publish Backend.csproj -c Release -r linux-x64 --self-contained true -p:PublishTrimmed=false && rsync -av bin/Release/net6.0/linux-x64/publish/ ubuntu@194.182.190.208:~/backend && ssh ubuntu@194.182.190.208 'sudo systemctl restart backend'

View File

@ -0,0 +1 @@
npm run build && rsync -rv .* ubuntu@194.182.190.208:~/frontend/ && ssh ubuntu@194.182.190.208 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/' && ssh ubuntu@194.182.190.208 'sudo npm install -g serve'

View File

@ -1,11 +1,11 @@
import axios from 'axios'; import axios from 'axios';
export const axiosConfigWithoutToken = axios.create({ export const axiosConfigWithoutToken = axios.create({
baseURL: 'https://localhost:7087/api' baseURL: 'https://monitor.innov.energy/api'
}); });
const axiosConfig = axios.create({ const axiosConfig = axios.create({
baseURL: 'https://localhost:7087/api' baseURL: 'https://monitor.innov.energy/api'
}); });
axiosConfig.defaults.params = {}; axiosConfig.defaults.params = {};