Update server-side Axios URL/port to seamlessly work with deployments

parent 5e840488
......@@ -28,7 +28,7 @@ if (process.browser) {
_app.configure(primus(clientSideWebSocketViaPrimus))
} else {
// Configure for server-side use.
const serverSideRestViaAxios = rest('http://localhost:3030').axios(axios)
const serverSideRestViaAxios = rest('http://0.0.0.0:5000').axios(axios)
_app.configure(serverSideRestViaAxios)
}
export const app = _app
......
{
"host": "localhost",
"host": "0.0.0.0",
"instance-configuration-directory": "instance-configuration",
"port": 3030,
"port": 5000,
"public": "../public/",
"paginate": {
"default": 10,
......
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