Skip to content

Commit

Permalink
fix: react & webpack errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonny93 committed Aug 30, 2023
1 parent db3859c commit 1c594ed
Show file tree
Hide file tree
Showing 40 changed files with 1,370 additions and 131 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD=
CACHE_VIEWS=false
SESSION_DRIVER=cookie
SESSION_DRIVER=cookie
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ COPY --chown=node:node . .
FROM dependencies AS build
RUN node ace build --production

RUN node ace ssr:build
RUN node ace migration:run

FROM base AS production
ENV NODE_ENV=production
ENV PORT=$PORT
Expand Down
4 changes: 2 additions & 2 deletions config/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
* file.
*/

import proxyAddr from 'proxy-addr';
import Env from '@ioc:Adonis/Core/Env';
import type { ServerConfig } from '@ioc:Adonis/Core/Server';
import type { LoggerConfig } from '@ioc:Adonis/Core/Logger';
import type { ProfilerConfig } from '@ioc:Adonis/Core/Profiler';
import type { ServerConfig } from '@ioc:Adonis/Core/Server';
import type { ValidatorConfig } from '@ioc:Adonis/Core/Validator';
import proxyAddr from 'proxy-addr';

/*
|--------------------------------------------------------------------------
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ services:
container_name: postgres
image: postgres:13
environment:
POSTGRES_PASSWORD: ${PG_PASSWORD}
- POSTGRES_DB=${PG_DB_NAME}
- POSTGRES_USER=${PG_USER}
- POSTGRES_PASSWORD=${PG_PASSWORD}
volumes:
- postgres_volume:/var/lib/postgresql/data
- ./dockerConfig/postgres-dev-init.sql:/docker-entrypoint-initdb.d/init.sql
Expand Down
Loading

0 comments on commit 1c594ed

Please sign in to comment.