Commit 50f1d185 authored by chenos's avatar chenos
Browse files

fix: specify the env file path

parent 996e87da
Showing with 3173 additions and 3944 deletions
+3173 -3944
......@@ -5,7 +5,6 @@ networks:
services:
verdaccio:
image: verdaccio/verdaccio
container_name: "verdaccio"
networks:
- node-network
environment:
......@@ -41,13 +40,3 @@ services:
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_PASSWORD: ${DB_PASSWORD}
app:
build:
context: .
dockerfile: Dockerfile
command: [ "yarn", "start" ]
ports:
- "${APP_HTTP_PORT}:${APP_HTTP_PORT}"
- "${HTTP_PORT}:${HTTP_PORT}"
networks:
- node-network
\ No newline at end of file
......@@ -15,7 +15,9 @@ const sync = global.sync || {
console.log('process.env.NOCOBASE_ENV', process.env.NOCOBASE_ENV);
dotenv.config();
dotenv.config({
path: path.resolve(__dirname, '../../../.env'),
});
const api = Api.create({
database: {
......
import { defineConfig } from 'umi';
import dotenv from 'dotenv';
import path from 'path';
dotenv.config({
path: path.resolve(__dirname, '../../.env'),
});
console.log('process.env.API_PORT', process.env.API_PORT);
export default defineConfig({
title: false,
......
......@@ -24,6 +24,7 @@
"@ant-design/pro-layout": "^5.0.12",
"@formily/antd-components": "^1.3.6",
"@lourenci/react-kanban": "^2.1.0",
"@nocobase/client": "^0.4.0-alpha.0",
"@types/react-big-calendar": "^0.24.8",
"@umijs/preset-react": "1.x",
"@umijs/test": "^3.2.23",
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment