Skip to content
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

Allow hot reload when using the express server to display the client #3

Open
apolopena opened this issue Feb 2, 2022 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@apolopena
Copy link
Owner

apolopena commented Feb 2, 2022

Problem this feature will solve

Currently hot reload only works on port 3000 and not on port 7777

Hot reload works when the react client is using the CRA dev server but doesnt work when the client is plugged into the actual Express server (such as on port 7777)

Background

Proposed Solution

Implment a hot reload system for the port that the Express server is running. By default this is 7777

Constraints and Assumptions

<! -- Any constraints and/or assumption relevant for the development and use of this feature? -->

Alternatives or Workarounds

Assuming you are using the default Express Server port 7777:

  1. Save changes in a .tsx src file
  2. Rebuild files: In /client run: yarn run build
  3. Refresh the preview browser for port 7777 by clicking the button or running: op -7777 from the project root.

Additional context

Add any other context or screenshots about the feature request here.

@apolopena apolopena added the enhancement New feature or request label Feb 2, 2022
@apolopena apolopena self-assigned this Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant