-
Notifications
You must be signed in to change notification settings - Fork 16
revise README #334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
revise README #334
Conversation
|
||
and replace the default port number 80 to a new port number. For example, you can set the port number to 8080 for all occurences of 80. | ||
|
||
Also, comment out the port section of the `ui` container in `CODEPOD_ROOT/compose/dev/compose.yml` as: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's mention the "development process" somewhere. Basically, the process is:
- start the docker stack
- modify some
.ts
files. Upon saving, the server processes will be restarted automatically.- How it works:
- the source files are mounted into the
ui/
orapi/
container in the development stack. - the server process monitor the file changes and restart accordingly
- the source files are mounted into the
- How it works:
- see the changed behavior in app by refreshing the webpage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the future, I plan to remove the "hot-reloading" feature of React (by not binding ui:3000
to localhost:3000
) because hot-reloading seems to only update the app partially. A manual refresh is safer and more reliable. Hot reloading is reliable for small apps or style changes, but not a complex app like CodePod. But let's keep it as is for now.
migration, e.g. [this | ||
migration](./api/prisma/migrations/20221206194247_add_google_login/migration.sql). | ||
The schema change along with this migration need to be checked in to git. | ||
- Another developer pulls the change, then running the `npx prisma migrate dev` (in the api container's shell) to apply the schema change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is useful but got removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added back in #363
No description provided.