Skip to content

Commit f3344d1

Browse files
committed
fix: static files not correctly served
1 parent b913c10 commit f3344d1

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

apps/api/src/express.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = () => {
6060
)
6161

6262
if (process.env.NODE_ENV === 'production') {
63-
app.use(express.static(path.join(__dirname, '../../public')))
63+
app.use(express.static(path.join(__dirname, '../public')))
6464
}
6565

6666
app.use(require('@/middleware/errors.js'))

apps/api/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const main = async () => {
2727
console.log(`Server listening on ${address}:${port}`)
2828
})
2929

30-
const port = process.env.APP_PORT || 4242
30+
const port = process.env.API_PORT || 4242
3131
const host = process.env.APP_HOST || '0.0.0.0'
3232

3333
server.listen(port, host)

docker-compose.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ ersion: '3.7'
22

33
services:
44
lnmarkets:
5-
image: ghcr.io/ln-markets/umbrel:v1.1.4@sha256:7f72864171bbe7922929d940a63c31faed6aa7525b6a236f5a4e0d2680ccdeba
6-
user: 1000:1000
5+
image: ghcr.io/ln-markets/umbrel:v1.1.4
76
init: true
87
restart: on-failure
98
stop_grace_period: 1m
@@ -12,13 +11,13 @@ services:
1211
volumes:
1312
- ${LND_DATA_DIR}:/lnd:ro
1413
environment:
15-
APP_URL: 0.0.0.0
16-
API_PORT: $APP_LNMARKETS_PORT
1714
LND_IP: $LND_IP
1815
LND_GRPC_PORT: $LND_GRPC_PORT
1916
BITCOIN_NETWORK: $BITCOIN_NETWORK
2017
APP_HIDDEN_SERVICE: $APP_HIDDEN_SERVICE
2118
APP_DOMAIN: $APP_DOMAIN
19+
# LN Markets env var
20+
API_PORT: $APP_LNMARKETS_PORT
2221
networks:
2322
default:
2423
ipv4_address: $APP_LNMARKETS_IP

0 commit comments

Comments
 (0)