added deploy scripts for backend and frontend (use in the folder and while in the vpn)
This commit is contained in:
parent
13fabb8e16
commit
651f2974c4
|
@ -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'
|
|
@ -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'
|
|
@ -1,11 +1,11 @@
|
|||
import axios from 'axios';
|
||||
|
||||
export const axiosConfigWithoutToken = axios.create({
|
||||
baseURL: 'https://localhost:7087/api'
|
||||
baseURL: 'https://monitor.innov.energy/api'
|
||||
});
|
||||
|
||||
const axiosConfig = axios.create({
|
||||
baseURL: 'https://localhost:7087/api'
|
||||
baseURL: 'https://monitor.innov.energy/api'
|
||||
});
|
||||
|
||||
axiosConfig.defaults.params = {};
|
||||
|
|
Loading…
Reference in New Issue