Change default api url to 3456 (Vikunja default)
This commit is contained in:
parent
d46faec23d
commit
0c6b0cb48d
3 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@ steps:
|
|||
- yarn --frozen-lockfile
|
||||
- yarn run lint
|
||||
- yarn run build
|
||||
- sed -i 's/http\:\/\/localhost\:8080\/api\/v1/\/api\/v1/g' dist/index.html # Override the default api url used for developing
|
||||
- sed -i 's/http\:\/\/localhost\:3456\/api\/v1/\/api\/v1/g' dist/index.html # Override the default api url used for developing
|
||||
|
||||
- name: static
|
||||
image: kolaente/zip
|
||||
|
@ -113,7 +113,7 @@ steps:
|
|||
- yarn --frozen-lockfile
|
||||
- yarn run lint
|
||||
- yarn run build
|
||||
- sed -i 's/http\:\/\/localhost\:8080\/api\/v1/\/api\/v1/g' dist/index.html # Override the default api url used for developing
|
||||
- sed -i 's/http\:\/\/localhost\:3456\/api\/v1/\/api\/v1/g' dist/index.html # Override the default api url used for developing
|
||||
|
||||
- name: static
|
||||
image: kolaente/zip
|
||||
|
|
|
@ -10,7 +10,7 @@ RUN \
|
|||
yarn install --frozen-lockfile && \
|
||||
yarn run build && \
|
||||
# Override config
|
||||
sed -i 's/http\:\/\/localhost\:8080\/api\/v1/\/api\/v1/g' dist/index.html
|
||||
sed -i 's/http\:\/\/localhost\:3456\/api\/v1/\/api\/v1/g' dist/index.html
|
||||
|
||||
# Stage 2: copy
|
||||
FROM nginx
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
// This variable points the frontend to the api.
|
||||
// It has to be the full url, including the last /api/v1 part and port.
|
||||
// You can change this if your api is not reachable on the same port as the frontend.
|
||||
window.API_URL = 'http://localhost:8080/api/v1'
|
||||
window.API_URL = 'http://localhost:3456/api/v1'
|
||||
//
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue