-
Notifications
You must be signed in to change notification settings - Fork 0
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
Deployment Scripts and (partial) rewrite of Backend Code #74
Conversation
This is ready for a review sometime tomorrow but is already rolled to deployment (to show that it works). Important note: we removed the client package-lock.json (and maybe the root dir too?) to get Heroku to deploy (as suggested on their support website.) |
console.log(path.join(__dirname, 'client/build')); | ||
app.use(express.static(path.join(__dirname, 'client/build'))); | ||
app.get('*', (req,res) => { | ||
res.sendFile(path.resolve(__dirname, 'client', 'build', 'index.html')); |
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.
Is it supposed to be index.html for our purposes?
@wihobbs Currently getting 404 errors when running this in local development - also we need to fix readme to reflect both ".env" and that we are now running "npm run dev" instead of "npm start" |
@jackcoberman Are you sure you're navigating to the correct port on your local device? We changed that a few times and I believe 3001 is the one we settled on, but just want to be sure. I haven't seen that 404 error before -- if you can shoot me a screenshot I'll look into it more. |
I think for now we should deprecate Build the code -- This will start the server and the client, and they can communicate with each other (on my machine and our deployment). Goes without saying that you need |
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.
looks good everything works
test pr