Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nocobase
Commits
50f1d185
Commit
50f1d185
authored
4 years ago
by
chenos
Browse files
Options
Download
Email Patches
Plain Diff
fix: specify the env file path
parent
996e87da
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
docker-compose.yml
+0
-11
docker-compose.yml
packages/api/src/app.ts
+3
-1
packages/api/src/app.ts
packages/app/.umirc.ts
+8
-0
packages/app/.umirc.ts
packages/app/package.json
+1
-0
packages/app/package.json
yarn.lock
+3161
-3932
yarn.lock
with
3173 additions
and
3944 deletions
+3173
-3944
docker-compose.yml
+
0
-
11
View file @
50f1d185
...
...
@@ -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
This diff is collapsed.
Click to expand it.
packages/api/src/app.ts
+
3
-
1
View file @
50f1d185
...
...
@@ -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
:
{
...
...
This diff is collapsed.
Click to expand it.
packages/app/.umirc.ts
+
8
-
0
View file @
50f1d185
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
,
...
...
This diff is collapsed.
Click to expand it.
packages/app/package.json
+
1
-
0
View file @
50f1d185
...
...
@@ -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.
Click to expand it.
yarn.lock
+
3161
-
3932
View file @
50f1d185
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help