Skip to content

Commit

Permalink
Merge pull request #5 from ourcade/hp/upgrade-hathora
Browse files Browse the repository at this point in the history
Upgrade hathora
  • Loading branch information
supertommy authored Aug 2, 2023
2 parents 132b5ab + c610257 commit 2518b26
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16.14.2
- run: npm install hathora -g
- run: npm install @hathora/cli -g
- name: Hathora version
run: hathora --version
run: hathora-cloud --version
- name: Deploy
run: hathora cloud deploy --appName flappy-race --token ${{ secrets.HATHORA_TOKEN }}
run: hathora-cloud deploy --appId app-e2476b33-a573-4d45-9a04-39e80a3a31fd --token ${{ secrets.HATHORA_TOKEN }}
14 changes: 6 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
FROM node:16
FROM node:18

WORKDIR /app

RUN npm i -g [email protected]

ENV NODE_ENV=production
COPY . .

ARG APP_SECRET
ENV APP_SECRET=${APP_SECRET}
RUN npm i -g [email protected]
RUN npx hathora build --only server

COPY . .
RUN hathora build --only server
ENV NODE_ENV=production
ENV DATA_DIR=/app/data

CMD ["node", "server/dist/index.mjs"]

0 comments on commit 2518b26

Please sign in to comment.