run the compiled app #31329
its-dibo
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I switched my monorepo to NX, previously the package.json file had some scripts, after building the app the package.json file also copied into dist.
Now I can deploy the dist dir of each app separately and run something like
npm run start
from itNow everything is changed. I removed the scripts section from package.json and added empty targets in project.json in each app, and defined the target defaults in nx.json
my-app/project.json
nx.json
Now when I build the app and copy package.json into dist and upload the dist dir, it has no scripts
I tried to copy both the root nx.json and the project's project.json, but not worked, also, in my local machine, nx see that I have duplicate workspaces, also I want to test serving the app from dist as I'll do after deploying it
i.e. runnng
nx run-many -t serve
will build the app from the source ode, and then serve it, which is not the desired behavior to test how the compiled app will run on the server after deploying itBeta Was this translation helpful? Give feedback.
All reactions