Skip to content

Commit ba6e12e

Browse files
committed
upgrade to epicshop
1 parent 16c2959 commit ba6e12e

40 files changed

+5655
-13867
lines changed

.eslintignore

-7
This file was deleted.

.github/workflows/validate.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ jobs:
5050

5151
- name: 🚀 Deploy
5252
run: flyctl deploy --remote-only
53-
working-directory: ./scripts/deployed
53+
working-directory: ./epicshop
5454
env:
5555
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

.prettierignore

-11
This file was deleted.

.prettierrc

-28
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
tsconfig.json
2+
*.test.*

epicshop/Dockerfile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM node:20-bookworm-slim as base
2+
3+
RUN apt-get update && apt-get install -y git
4+
5+
ENV EPICSHOP_CONTEXT_CWD="/myapp/workshop-content"
6+
ENV EPICSHOP_DEPLOYED="true"
7+
ENV EPICSHOP_DISABLE_WATCHER="true"
8+
ENV FLY="true"
9+
ENV PORT="8080"
10+
ENV NODE_ENV="production"
11+
12+
WORKDIR /myapp
13+
14+
ADD . .
15+
16+
RUN npm install --omit=dev
17+
18+
CMD rm -rf ${EPICSHOP_CONTEXT_CWD} && \
19+
git clone https://github.com/epicweb-dev/advanced-react-patterns ${EPICSHOP_CONTEXT_CWD} && \
20+
cd ${EPICSHOP_CONTEXT_CWD} && \
21+
npx epicshop start

scripts/fix-watch.js renamed to epicshop/fix-watch.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import chokidar from 'chokidar'
21
import path from 'node:path'
3-
import { $ } from 'execa'
42
import { fileURLToPath } from 'node:url'
3+
import chokidar from 'chokidar'
4+
import { $ } from 'execa'
55

66
const __dirname = path.dirname(fileURLToPath(import.meta.url))
77
const here = (...p) => path.join(__dirname, ...p)

scripts/fix.js renamed to epicshop/fix.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// This should run by node without any dependencies
22
// because you may need to run it without deps.
33

4-
import fs from 'node:fs'
54
import cp from 'node:child_process'
5+
import fs from 'node:fs'
66
import path from 'node:path'
77
import { fileURLToPath } from 'node:url'
88

scripts/deployed/fly.toml renamed to epicshop/fly.toml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ primary_region = "sjc"
33
kill_signal = "SIGINT"
44
kill_timeout = 5
55
processes = [ ]
6+
swap_size_mb = 512
67

78
[experimental]
89
allowed_public_ports = [ ]

0 commit comments

Comments
 (0)