Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
86b9b5d
1
Parent(s):
a55d5b9
update build commands for production release
Browse files
packages/app/Dockerfile → Dockerfile
RENAMED
@@ -48,12 +48,12 @@ RUN ffmpeg -version
|
|
48 |
# Copy the current directory contents into the container at /app setting the owner to the user
|
49 |
COPY --chown=user . /app
|
50 |
|
51 |
-
RUN
|
52 |
|
53 |
-
RUN
|
54 |
|
55 |
EXPOSE 3000
|
56 |
|
57 |
ENV PORT 3000
|
58 |
|
59 |
-
CMD ["
|
|
|
48 |
# Copy the current directory contents into the container at /app setting the owner to the user
|
49 |
COPY --chown=user . /app
|
50 |
|
51 |
+
RUN bun i
|
52 |
|
53 |
+
RUN bun run build
|
54 |
|
55 |
EXPOSE 3000
|
56 |
|
57 |
ENV PORT 3000
|
58 |
|
59 |
+
CMD ["bun", "run", "start:prod"]
|
package.json
CHANGED
@@ -20,6 +20,7 @@
|
|
20 |
"scripts": {
|
21 |
"dev": "bun run --cwd packages/app dev",
|
22 |
"start": "bun run --cwd packages/app start",
|
|
|
23 |
"build": "bun run build:all",
|
24 |
"build:all": "bun run build:clap && bun run build:timeline && bun run build:api-client && bun run build:io && bun run build:colors && bun run build:engine && bun run build:broadway && bun run build:clapper-services && bun run build:app",
|
25 |
"build:clap": "bun run --cwd packages/clap build",
|
|
|
20 |
"scripts": {
|
21 |
"dev": "bun run --cwd packages/app dev",
|
22 |
"start": "bun run --cwd packages/app start",
|
23 |
+
"start:prod": "bun run --cwd packages/app start:prod",
|
24 |
"build": "bun run build:all",
|
25 |
"build:all": "bun run build:clap && bun run build:timeline && bun run build:api-client && bun run build:io && bun run build:colors && bun run build:engine && bun run build:broadway && bun run build:clapper-services && bun run build:app",
|
26 |
"build:clap": "bun run --cwd packages/clap build",
|
packages/app/package.json
CHANGED
@@ -15,11 +15,10 @@
|
|
15 |
"scripts": {
|
16 |
"dev": "bun run checks && next dev",
|
17 |
"build": "bun run prepare && bun run checks && rm -Rf out && next build && bun run build:copyassets",
|
18 |
-
"build:
|
19 |
-
"build:copyassets": "cp -R public .next/standalone/public && cp -R .next/static .next/standalone/static",
|
20 |
"prepare": "cp -R ../../node_modules/mediainfo.js/dist/MediaInfoModule.wasm public/wasm/",
|
21 |
"start": "next start",
|
22 |
-
"start:prod": "
|
23 |
"checks": "bun run format:fix && bun run lint",
|
24 |
"format": "prettier --check --ignore-path .gitignore ./src/",
|
25 |
"format:fix": "prettier --write --ignore-path .gitignore ./src/",
|
@@ -29,7 +28,7 @@
|
|
29 |
"test_TEMPORARY_DISABLED": "bun run build && bun run test:unit:ci && bun run test:e2e",
|
30 |
"test:unit:ci": "vitest run",
|
31 |
"test:unit:watch": "vitest",
|
32 |
-
"test:e2e": "
|
33 |
"electron": "bun run build && electron .",
|
34 |
"electron:start": "bun run build && electron-forge start",
|
35 |
"electron:package": "bun run build && electron-forge package",
|
|
|
15 |
"scripts": {
|
16 |
"dev": "bun run checks && next dev",
|
17 |
"build": "bun run prepare && bun run checks && rm -Rf out && next build && bun run build:copyassets",
|
18 |
+
"build:copyassets": "cp -R public .next/standalone/packages/app/public && cp -R .next/static .next/standalone/packages/app/.next/static",
|
|
|
19 |
"prepare": "cp -R ../../node_modules/mediainfo.js/dist/MediaInfoModule.wasm public/wasm/",
|
20 |
"start": "next start",
|
21 |
+
"start:prod": "bun .next/standalone/packages/app/server.js",
|
22 |
"checks": "bun run format:fix && bun run lint",
|
23 |
"format": "prettier --check --ignore-path .gitignore ./src/",
|
24 |
"format:fix": "prettier --write --ignore-path .gitignore ./src/",
|
|
|
28 |
"test_TEMPORARY_DISABLED": "bun run build && bun run test:unit:ci && bun run test:e2e",
|
29 |
"test:unit:ci": "vitest run",
|
30 |
"test:unit:watch": "vitest",
|
31 |
+
"test:e2e": "bunx playwright test",
|
32 |
"electron": "bun run build && electron .",
|
33 |
"electron:start": "bun run build && electron-forge start",
|
34 |
"electron:package": "bun run build && electron-forge package",
|
packages/app/src/lib/core/constants.ts
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
export const HARD_LIMIT_NB_MAX_ASSETS_TO_GENERATE_IN_PARALLEL = 32
|
4 |
|
5 |
export const APP_NAME = 'Clapper.app'
|
6 |
-
export const APP_REVISION = '
|
7 |
|
8 |
export const APP_DOMAIN = 'Clapper.app'
|
9 |
export const APP_LINK = 'https://clapper.app'
|
|
|
3 |
export const HARD_LIMIT_NB_MAX_ASSETS_TO_GENERATE_IN_PARALLEL = 32
|
4 |
|
5 |
export const APP_NAME = 'Clapper.app'
|
6 |
+
export const APP_REVISION = '20240816+1424'
|
7 |
|
8 |
export const APP_DOMAIN = 'Clapper.app'
|
9 |
export const APP_LINK = 'https://clapper.app'
|