Skip to content

Commit

Permalink
edit pm2 ecosystem file
Browse files Browse the repository at this point in the history
  • Loading branch information
XSmas29 committed Oct 12, 2024
1 parent ba3b3b7 commit 5851f9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module.exports = {
apps : [{
name: 'artistica-api',
script: 'npm run dev',
watch: true
watch: "src",
ignore_watch: "public",
}],

deploy : {
Expand Down
4 changes: 1 addition & 3 deletions src/utils/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ export const uploadFile = async (file: FileUpload, uploadDir: string, fileName:
const result = createWriteStream(join(__dirname, `../../public/${filePath}`))
stream.pipe(result)
await finished(result)
console.log('file uploaded')
console.log(result)
console.log(filePath)
console.log('file uploaded: ', filePath)

// part.file.pipe(writeStream);

Expand Down

0 comments on commit 5851f9c

Please sign in to comment.