Commit 5cb2c261 authored by M2947's avatar M2947 😎
Browse files

edited yml

parent 2c4d1e22
Pipeline #243027 failed with stages
in 11 seconds
......@@ -11,10 +11,10 @@ deploy:
- echo 'Started Deploying'
- ls /home/ubuntu/ -l -a
- cd Tavara-\ raskaan\ liikenne/backend/
- npm install
- sudo npm install
- sudo pm2 start indes.js --restart-delay 3000
#changing the local host to server IP address
- sed -i 's/localhost/86.50.252.101/' ../frontend/traffic/src/components/Url.js
- sudo sed -i 's/localhost/86.50.252.101/' ../frontend/traffic/src/components/Url.js
only:
......@@ -27,9 +27,9 @@ build:
- echo "Building"
- pwd
- cd ../frontend/traffic
- npm install
- npm run build
- serve -s build -l 80
- sudo npm install
- sudo npm run build
- sudo serve -s build -l 80
only:
- master
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment