Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
M2947_2020
HeavyTraffic
Commits
3fd5cb76
Commit
3fd5cb76
authored
Jul 06, 2020
by
M2947
😎
Browse files
yml edit
parent
dfa834e4
Pipeline
#243055
failed with stages
in 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
3fd5cb76
...
...
@@ -12,9 +12,9 @@ deploy:
-
ls /home/ubuntu/ -l -a
-
cd Tavara-\ raskaan\ liikenne/backend/
-
npm install
-
pm2 start index.js -f --restart-delay
3000
#
- pm2 start index.js -f --restart-delay 3000
#changing the local host to server IP address
-
sudo sed -i 's/localhost/
86.50.252.101
/'
..
/frontend/traffic/src/components/Url.js
-
sudo sed -i 's/localhost/
195.148.20.223
/' /frontend/traffic/src/components/Url.js
only
:
...
...
Tavara- raskaan liikenne/backend/index.js
View file @
3fd5cb76
...
...
@@ -6,8 +6,8 @@ var app = express();
app
.
use
(
cors
());
app
.
use
(
"
/
"
,
require
(
"
./routes/test.js
"
))
app
.
get
(
'
/
'
,
(
req
,
res
)
=>
res
.
send
(
'
Hello World!
'
))
//
app.use("/",require("./routes/test.js"))
app
.
use
(
"
/api/vehicle/
"
,
require
(
'
./routes/api/vehicles/vehicle
'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment