fix: attempt to fix Dockerfile front build (#5020)
This commit is contained in:
@ -41,7 +41,7 @@ ARG REACT_APP_SERVER_BASE_URL
|
|||||||
|
|
||||||
COPY ./packages/twenty-front /app/packages/twenty-front
|
COPY ./packages/twenty-front /app/packages/twenty-front
|
||||||
COPY ./packages/twenty-ui /app/packages/twenty-ui
|
COPY ./packages/twenty-ui /app/packages/twenty-ui
|
||||||
RUN yarn nx build twenty-front
|
RUN npx nx build twenty-front
|
||||||
|
|
||||||
|
|
||||||
# Final stage: Run the application
|
# Final stage: Run the application
|
||||||
|
|||||||
@ -187,15 +187,15 @@ yarn nx database:reset twenty-server
|
|||||||
|
|
||||||
Start the server and the frontend:
|
Start the server and the frontend:
|
||||||
```bash
|
```bash
|
||||||
yarn nx start twenty-server
|
npx nx start twenty-server
|
||||||
yarn nx start twenty-front
|
npx nx start twenty-front
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, you can start both applications at once:
|
Alternatively, you can start both applications at once:
|
||||||
```bash
|
```bash
|
||||||
yarn nx start
|
npx nx start
|
||||||
# or
|
# or
|
||||||
yarn nx start twenty
|
npx nx start twenty
|
||||||
```
|
```
|
||||||
|
|
||||||
Twenty's server will be up and running at [http://localhost:3000/graphql](http://localhost:3000/graphql).
|
Twenty's server will be up and running at [http://localhost:3000/graphql](http://localhost:3000/graphql).
|
||||||
|
|||||||
@ -4,11 +4,11 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npx nx exec -- vite build && sh ./scripts/inject-runtime-env.sh",
|
"build": "npx vite build && sh ./scripts/inject-runtime-env.sh",
|
||||||
"build:sourcemaps": "VITE_BUILD_SOURCEMAP=true NODE_OPTIONS=--max-old-space-size=3000 npx nx build",
|
"build:sourcemaps": "VITE_BUILD_SOURCEMAP=true NODE_OPTIONS=--max-old-space-size=3000 npx nx build",
|
||||||
"start:prod": "NODE_ENV=production npx nx exec -- vite --host",
|
"start:prod": "NODE_ENV=production npx vite --host",
|
||||||
"storybook:build": "npx nx exec -- storybook build",
|
"storybook:build": "npx storybook build",
|
||||||
"tsup": "npx nx exec -- tsup"
|
"tsup": "npx tsup"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.17.1",
|
"node": "^18.17.1",
|
||||||
|
|||||||
@ -4,12 +4,12 @@ This library was generated with [Nx](https://nx.dev).
|
|||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
Run `yarn nx build twenty-ui` to build the library.
|
Run `npx nx build twenty-ui` to build the library.
|
||||||
|
|
||||||
## Storybook Server
|
## Storybook Server
|
||||||
|
|
||||||
Run `yarn nx start twenty-ui` to start the storybook development server on `localhost:6006`.
|
Run `npx nx start twenty-ui` to start the storybook development server on `localhost:6006`.
|
||||||
|
|
||||||
## Running unit tests
|
## Running unit tests
|
||||||
|
|
||||||
Run `yarn nx test twenty-ui` to execute the unit tests via [Jest](https://jestjs.io).
|
Run `npx nx test twenty-ui` to execute the unit tests via [Jest](https://jestjs.io).
|
||||||
|
|||||||
Reference in New Issue
Block a user