Commit 4ddfc626 authored by Aral Balkan's avatar Aral Balkan

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

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