-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Separate Webpack Dev server from API server (fixes #1348) #1415
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
Conversation
This runs a new server instance on port 3000 (set using CLIENT_PORT) allowing a developer to only run the client code on their machine. The local editor code can connect to a remote instance of the Editor API by setting the API_URL env var.
Hi @catarak, finally having some time to look at this project again due to the holiday - what do you think about this change? Once this is in place, I could continue with #1257 . This would open the door to us being able to easily have per-branch preview deploys, which should hopefully make it easier for maintainers to review the functionality of PRs without needing to copy the changes locally every time. |
Thanks for bumping this! Right now, I have the staging server set up with basic auth, which works great with a relatively small number of people testing changes on So I think what needs to happen is that this PR needs to be updated so that |
I'm not sure that we'd need I think what we want is:
Both of these changes need to be made in |
oh duh of course!
This approach makes sense to me! I've also been in contact with a new tool called Release which will deploy pull request builds (and do other stuff too), but I still think it's worth it to get this in so that folks can do development and only run the front-end application. |
Thank you so much for taking the time to contribute to this issue! Since some time has passed I'm going to close this for now, but please feel free to reopen this or work on this again, thanks! |
This extracts the webpack dev server into it's own process, run with
npm run start:client
. This allows contributors to just run the web app.There are a couple of others parts to this:
I have verified that this pull request:
npm run lint
)Fixes #123