Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Commit

Permalink
fix: try fix template folder
Browse files Browse the repository at this point in the history
Signed-off-by: Dominic Hock <[email protected]>
  • Loading branch information
Subtixx authored Apr 5, 2023
1 parent 4c74bce commit 20f994f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ ENV SPACE_DEFAULT_STATUS=""

WORKDIR /usr/src/app
COPY package*.json ./
COPY templates/ ./templates/
COPY templates /usr/src/app/templates

# From builder get all js files
COPY --from=builder /usr/src/app/*.js /usr/src/app/
COPY --from=builder /usr/src/app/node_modules /usr/src/app/node_modules

EXPOSE 2652

CMD [ "npm", "start" ]
CMD [ "npm", "start" ]
5 changes: 4 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ const SPACE_PROJECT = process.env['SPACE_PROJECT'] || ""
const SPACE_TOKEN = process.env['SPACE_TOKEN'] || ""
const SPACE_DEFAULT_STATUS = process.env['SPACE_DEFAULT_STATUS'] || ""

const SPACE_ISSUE_TEMPLATE = fs.readFileSync('templates/issue.txt', 'utf8');
let SPACE_ISSUE_TEMPLATE = "{{body}}\r"
if (fs.existsSync('templates/issue.txt')) {
SPACE_ISSUE_TEMPLATE = fs.readFileSync('templates/issue.txt', 'utf8')
}

const server = Restify.createServer();
new ErrorHandler(server);
Expand Down

0 comments on commit 20f994f

Please sign in to comment.