Change default api url to 3456 (Vikunja default)

This commit is contained in:
kolaente 2020-05-05 22:47:17 +02:00
parent d46faec23d
commit 0c6b0cb48d
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
3 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ steps:
- yarn --frozen-lockfile - yarn --frozen-lockfile
- yarn run lint - yarn run lint
- yarn run build - 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 - name: static
image: kolaente/zip image: kolaente/zip
@ -113,7 +113,7 @@ steps:
- yarn --frozen-lockfile - yarn --frozen-lockfile
- yarn run lint - yarn run lint
- yarn run build - 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 - name: static
image: kolaente/zip image: kolaente/zip

View file

@ -10,7 +10,7 @@ RUN \
yarn install --frozen-lockfile && \ yarn install --frozen-lockfile && \
yarn run build && \ yarn run build && \
# Override config # 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 # Stage 2: copy
FROM nginx FROM nginx

View file

@ -30,7 +30,7 @@
// This variable points the frontend to the api. // This variable points the frontend to the api.
// It has to be the full url, including the last /api/v1 part and port. // 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. // 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> </script>
</body> </body>