Skip to content

Commit

Permalink
upgrade to epicshop
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Apr 24, 2024
1 parent 64d9ebb commit 2f47f77
Show file tree
Hide file tree
Showing 23 changed files with 2,145 additions and 3,500 deletions.
74 changes: 0 additions & 74 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ jobs:

- name: 🚀 Deploy Production
run: flyctl deploy --remote-only
working-directory: kcdshop/deployed
working-directory: ./epicshop
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
13 changes: 0 additions & 13 deletions .prettierignore

This file was deleted.

35 changes: 0 additions & 35 deletions .prettierrc

This file was deleted.

File renamed without changes.
13 changes: 6 additions & 7 deletions kcdshop/deployed/Dockerfile → epicshop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ FROM node:20-bookworm-slim as base

RUN apt-get update && apt-get install -y git

ENV KCDSHOP_CONTEXT_CWD="/myapp/workshop-content"
ENV KCDSHOP_DEPLOYED="true"
ENV KCDSHOP_DISABLE_WATCHER="true"
ENV EPICSHOP_CONTEXT_CWD="/myapp/workshop-content"
ENV EPICSHOP_DEPLOYED="true"
ENV EPICSHOP_DISABLE_WATCHER="true"
ENV FLY="true"
ENV PORT="8080"
ENV NODE_ENV="production"
Expand All @@ -15,8 +15,7 @@ ADD . .

RUN npm install --omit=dev

CMD node ./setup-swap.js && \
rm -rf ${KCDSHOP_CONTEXT_CWD} && \
git clone https://github.com/epicweb-dev/react-server-components ${KCDSHOP_CONTEXT_CWD} && \
cd ${KCDSHOP_CONTEXT_CWD} && \
CMD rm -rf ${EPICSHOP_CONTEXT_CWD} && \
git clone https://github.com/epicweb-dev/react-server-components ${EPICSHOP_CONTEXT_CWD} && \
cd ${EPICSHOP_CONTEXT_CWD} && \
npx kcdshop start
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions kcdshop/deployed/fly.toml → epicshop/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ primary_region = "sjc"
kill_signal = "SIGINT"
kill_timeout = 5
processes = [ ]
swap_size_mb = 512

[experimental]
allowed_public_ports = [ ]
Expand Down
Loading

0 comments on commit 2f47f77

Please sign in to comment.