Skip to content

Commit cf5acf2

Browse files
committed
fix: add link script and step
1 parent e0fa01b commit cf5acf2

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ RUN npm run build
2424

2525
RUN npm run init
2626

27+
RUN npm run link
28+
2729
EXPOSE 3000
2830

2931
CMD ["npm", "run", "start"]

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"node": ">=16.15.0"
1717
},
1818
"scripts": {
19-
"build": "tsc -b ; rm -rf lib/icons ; ln -s ../icons lib/icons",
19+
"build": "tsc -b",
20+
"link": "mkdir -p icons cache ; rm -rf lib/icons ; ln -s ../icons lib/icons ; rm -rf lib/cache ; ln -s ../cache lib/cache",
2021
"test": "vitest --config vitest.config.mjs",
2122
"init": "node --expose-gc lib/start-init.js",
2223
"start": "node --expose-gc lib/index.js",

src/config/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const appConfig: AppConfig = {
1919

2020
// Host and port for server
2121
host: '0.0.0.0',
22-
port: 3000,
22+
port: process.env.PORT ? parseInt(process.env.PORT) : 3000,
2323

2424
// Log stuff
2525
log: true,

0 commit comments

Comments
 (0)