A
A
Alexander Florenko2019-04-28 22:31:21
Node.js
Alexander Florenko, 2019-04-28 22:31:21

How to properly raise a vue + node application on a vps server?

Hello.
This is my first time setting up a server for an application. There are incomprehensible moments.

The vue application itself is currently running on port 80.

node works on port 3001

If you write something like this in the axios settings
baseURL: ' mydomain.com:3001/api/v1 '
then nothing works

Tell me how to properly configure the server for communication between vue and node?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Bazarnov, 2019-04-29
@bazden

1) on the server side, use the command "netstat -tnlp" to make sure that the node really hangs on port 3001
2) use postmana to test api

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question