This commit is contained in:
The Foxon 2023-06-28 03:43:25 +12:00
parent 8f6d1de2c5
commit af5c7ff982
3 changed files with 3 additions and 7 deletions

View File

@ -11,8 +11,6 @@ ENV STORAGE=/app/storage
COPY --from=stage0 /app /app
RUN yarn global add cross-env
WORKDIR /app
CMD yarn start
CMD node dist/index.js

View File

@ -7,7 +7,7 @@
"start": "cross-env NODE_ENV=production node dist/index.js",
"start:dev": "cross-env NODE_ENV=development node dist/index.js",
"start:debug": "cross-env NODE_ENV=development ts-node src/index.ts --trace-warnings",
"build": "esbuild src/index.ts --outfile=dist/index.js --minify --target=esnext --bundle --platform=node",
"build": "esbuild src/index.ts --outfile=dist/index.js --target=esnext --bundle --platform=node",
"dev": "nodemon -e ts,tsx -w src --exec 'yarn build && yarn start:dev'",
"debug": "nodemon -e ts,tsx -w src --exec 'yarn start:debug'"
},
@ -28,4 +28,4 @@
"typescript": "^4.9.4",
"yarn": "^1.22.19"
}
}
}

View File

@ -23,8 +23,6 @@ const client = new Client({
const config = new ConfigManager()
console.log(config)
client.on('ready', () => {
console.log(`Logged in as ${client.user?.tag}!`);
updateServerData();