Closed irving-caamal closed 2 years ago
I've tried to build and run the frontend app with Parcel, unfortunately, I cannot do that.
What issues did you run into?
I've tried to build and run the frontend app with Parcel, unfortunately, I cannot do that.
What issues did you run into?
Hi @galbwe, well the app gets to build with no errors in the dist
directory but when you try to run it, it throws a Parcel error 'cause can't load the .js
files created, that's the reason I just put the same yarn dev
on the Dockerfile for production
I try these steps with no success.
type="module"
when loading the js script in the index.html (requested by parcel)parcel build src/index.html
parcel dist/index.html
can't load .js files
thanks for your time @galbwe :handshake:
Feature: add Dockerfile and docker-compose file to manage production and development environment
Hi I've created a docker-compose-dev.yml file to manage different environments for the frontend
I've tried to build and run the frontend app with Parcel, unfortunately, I cannot do that.
So I just run the frontend app in development mode.
You can set the build and run scripts in the package JSON and change the
yarn dev
instruction foryarn start
in the Dockerfile[x] Create docker-compose file and add Dockerfile.dev for dev environment
[x] Separate the node image in bundle and run
[x]
Build and run the app in production moderun the app in dev mode into production docker-compose[x] Add documentation of how to use both environments
Resolve #99
Hope this can help the project. thanks for the time