mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
docker: set up a configuration for development
This commit is contained in:
parent
a867822a62
commit
a3039167fe
@ -11,3 +11,6 @@ trim_trailing_whitespace = true
|
||||
[*.md]
|
||||
max_line_length = off
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.yaml]
|
||||
indent_style = space
|
||||
|
13
compose.yaml
Normal file
13
compose.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
services:
|
||||
date-front:
|
||||
image: node:lts-slim
|
||||
entrypoint:
|
||||
- "bash"
|
||||
- "docker/dev/entrypoint.sh"
|
||||
volumes:
|
||||
- '.:/var/www/html/funky-framadate-front'
|
||||
working_dir: '/var/www/html/funky-framadate-front'
|
||||
environment:
|
||||
- "NODE_OPTIONS=--openssl-legacy-provider"
|
||||
ports:
|
||||
- "4200:4200"
|
2
docker/dev/entrypoint.sh
Executable file
2
docker/dev/entrypoint.sh
Executable file
@ -0,0 +1,2 @@
|
||||
yarn install --pure-lockfile
|
||||
yarn start_docker
|
@ -8,6 +8,7 @@
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
"start_docker": "ng serve --host 0.0.0.0",
|
||||
"build:prod": "ng build --prod",
|
||||
"build:prod:stats": "ng build --prod --stats-json",
|
||||
"build:prod:gitlabpage": "ng build --prod --baseHref=/framadate/funky-framadate-front/",
|
||||
@ -130,5 +131,8 @@
|
||||
"^.+\\.(ts|html)$": "ts-jest",
|
||||
"^.+\\.jsx?$": "babel-jest"
|
||||
}
|
||||
},
|
||||
"browser": {
|
||||
"crypto": false
|
||||
}
|
||||
}
|
||||
|
@ -4,13 +4,13 @@ export const backendApiUrlsInDev = {
|
||||
local: 'http://localhost:8000/api/v1', // the docker port is this one
|
||||
// local: 'http://www.tk.lan/index.php/api/v1',
|
||||
// local: 'https://framadate-api.cipherbliss.com/api/v1',
|
||||
// remote: 'http://localhost:8000/api/v1',
|
||||
remote: 'http://localhost:8000/api/v1',
|
||||
// remote: 'http://www.tk.lan/index.php/api/v1',
|
||||
remote: 'https://framadate-api.cipherbliss.com/api/v1',
|
||||
//remote: 'https://framadate-api.cipherbliss.com/api/v1',
|
||||
};
|
||||
export const apiV1 = {
|
||||
// baseHref: 'http://localhost:8000/api/v1', // local "symfony serve" live server
|
||||
baseHref: 'http://www.tk.lan/index.php/api/v1', // local apache2 server
|
||||
baseHref: 'http://localhost:8000/api/v1', // local "symfony serve" live server
|
||||
// baseHref: 'http://www.tk.lan/index.php/api/v1', // local apache2 server
|
||||
// baseHref: 'http://tktest.lan/api/v1',
|
||||
// baseHref: 'https://framadate-api.cipherbliss.com/api/v1', // demo preprod
|
||||
api_new_poll: '/poll/',
|
||||
|
Loading…
Reference in New Issue
Block a user