mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-25 01:58:54 +02:00
feat: cleanup vite configs
This commit is contained in:
@@ -318,7 +318,7 @@ DJANGO_VITE_ASSETS_PATH = STATIC_ROOT
|
|||||||
DJANGO_VITE_MANIFEST_PATH = DJANGO_VITE_ASSETS_PATH / "manifest.json"
|
DJANGO_VITE_MANIFEST_PATH = DJANGO_VITE_ASSETS_PATH / "manifest.json"
|
||||||
DJANGO_VITE_DEV_MODE = DEBUG
|
DJANGO_VITE_DEV_MODE = DEBUG
|
||||||
DJANGO_VITE_DEV_SERVER_PORT = 5173
|
DJANGO_VITE_DEV_SERVER_PORT = 5173
|
||||||
DJANGO_VITE_DEV_SERVER_HOST = "100.118.164.62"
|
DJANGO_VITE_DEV_SERVER_HOST = "localhost"
|
||||||
|
|
||||||
# Default primary key field type
|
# Default primary key field type
|
||||||
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
|
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ services:
|
|||||||
dockerfile: ./docker/dev/django/Dockerfile
|
dockerfile: ./docker/dev/django/Dockerfile
|
||||||
image: wygiwyh_dev_server
|
image: wygiwyh_dev_server
|
||||||
container_name: wygiwyh_dev_server
|
container_name: wygiwyh_dev_server
|
||||||
command: /start-supervisor
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./app/:/usr/src/app/:z
|
- ./app/:/usr/src/app/:z
|
||||||
- ./frontend/:/usr/src/frontend:z
|
- ./frontend/:/usr/src/frontend:z
|
||||||
@@ -20,13 +19,13 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- webpack
|
- vite
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
webpack:
|
vite:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./docker/dev/webpack/Dockerfile
|
dockerfile: ./docker/dev/vite/Dockerfile
|
||||||
image: wygiwyh_dev_node
|
image: wygiwyh_dev_node
|
||||||
container_name: wygiwyh_dev_node
|
container_name: wygiwyh_dev_node
|
||||||
volumes:
|
volumes:
|
||||||
@@ -34,7 +33,6 @@ services:
|
|||||||
- ./app/:/usr/src/app/
|
- ./app/:/usr/src/app/
|
||||||
# http://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html
|
# http://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html
|
||||||
- /usr/src/frontend/node_modules
|
- /usr/src/frontend/node_modules
|
||||||
command: npm run dev
|
|
||||||
ports:
|
ports:
|
||||||
- '${WEBPACK_OUTBOUND_PORT}:5173'
|
- '${WEBPACK_OUTBOUND_PORT}:5173'
|
||||||
environment:
|
environment:
|
||||||
@@ -53,13 +51,3 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- '${SQL_PORT}:5432'
|
- '${SQL_PORT}:5432'
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# procrastinate:
|
|
||||||
# <<: *django
|
|
||||||
# image: wygiwyh_dev_procrastinate
|
|
||||||
# container_name: wygiwyh_dev_procrastinate
|
|
||||||
# depends_on:
|
|
||||||
# - db
|
|
||||||
# ports: [ ]
|
|
||||||
# command: /start-procrastinate
|
|
||||||
# restart: unless-stopped
|
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
image: wygiwhy_prod:latest
|
image: eitchtee/wygiwyh:latest
|
||||||
container_name: ${SERVER_NAME}
|
container_name: ${SERVER_NAME}
|
||||||
command: /start-single
|
|
||||||
ports:
|
ports:
|
||||||
- "${OUTBOUND_PORT}:8000"
|
- "${OUTBOUND_PORT}:8000"
|
||||||
env_file:
|
env_file:
|
||||||
- .prod.env
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -21,6 +20,3 @@ services:
|
|||||||
- POSTGRES_USER=${SQL_USER}
|
- POSTGRES_USER=${SQL_USER}
|
||||||
- POSTGRES_PASSWORD=${SQL_PASSWORD}
|
- POSTGRES_PASSWORD=${SQL_PASSWORD}
|
||||||
- POSTGRES_DB=${SQL_DATABASE}
|
- POSTGRES_DB=${SQL_DATABASE}
|
||||||
|
|
||||||
env_file:
|
|
||||||
- .prod.env
|
|
||||||
|
|||||||
@@ -41,3 +41,5 @@ RUN sed -i 's/\r$//g' /start && \
|
|||||||
chmod +x /start-supervisor
|
chmod +x /start-supervisor
|
||||||
|
|
||||||
COPY ./app .
|
COPY ./app .
|
||||||
|
|
||||||
|
CMD ["/start-supervisor"]
|
||||||
|
|||||||
@@ -7,3 +7,5 @@ COPY ./frontend/package.json .
|
|||||||
RUN npm install --verbose && npm cache clean --force
|
RUN npm install --verbose && npm cache clean --force
|
||||||
|
|
||||||
ENV PATH ./node_modules/.bin/:$PATH
|
ENV PATH ./node_modules/.bin/:$PATH
|
||||||
|
|
||||||
|
CMD ["npm", "run", "dev"]
|
||||||
@@ -64,3 +64,5 @@ RUN chown -R app:app /usr/src/app && \
|
|||||||
USER app
|
USER app
|
||||||
|
|
||||||
RUN python manage.py compilemessages --settings "WYGIWYH.settings"
|
RUN python manage.py compilemessages --settings "WYGIWYH.settings"
|
||||||
|
|
||||||
|
CMD ["/start-single"]
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
hmr: false,
|
hmr: false,
|
||||||
cors: true,
|
cors: true,
|
||||||
origin: 'http://100.118.164.62:5173'
|
origin: 'http://localhost:5173'
|
||||||
},
|
},
|
||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
Reference in New Issue
Block a user