Full Stack Open 2020 Project
This repository contains server files, the client files are at ninas-patientor-client
https://rocky-beach-20269.herokuapp.com
Change the base url in constants.ts file (front-end)
export const apiBaseUrl = "/api";
Change index.ts from development to production
-
Remove previous build with
rm -rf ./build/
(backend) -
Run
npm run tsc
to create a new build (backend) -
Run
npm run build
to create a new build (front-end) -
Change the name of front-end build folder to react-app and move it to the backend build folder
-
Commit changes to git
-
Run
git push heroku main
to push the new build to heroku -
Any issues, check logs with
heroku logs -t