Commit 2c4d1e22 authored by M2947's avatar M2947 😎
Browse files

edited yml file

parent a0621578
Pipeline #243026 failed with stages
in 0 seconds
......@@ -10,9 +10,11 @@ deploy:
- echo 'Started Deploying'
- ls /home/ubuntu/ -l -a
- sudo pm2 start Tavara-\ raskaan\ liikenne/backend/indes.js --restart-delay 3000
- cd Tavara-\ raskaan\ liikenne/backend/
- 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/' Tavara-\ raskaan\ liikenne/frontend/traffic/src/components/Url.js
- sed -i 's/localhost/86.50.252.101/' ../frontend/traffic/src/components/Url.js
only:
......@@ -24,7 +26,7 @@ build:
script:
- echo "Building"
- pwd
- cd Tavara-\ raskaan\ liikenne/frontend/traffic
- cd ../frontend/traffic
- npm install
- npm run build
- serve -s build -l 80
......
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