-
Git clone Ironclad
https://github.com/Tzikas/IronPlate.git
-
Remove github directory
rm -rf .git
-
Make new github repository.
git init
,git add .
,git commit -m "Deployment"......
-
Replace MONGODB_URI with your own Mongodb link from Atlas.
-
Go to Heroku -> Create New App -> Select Your project from github repository -> Enable automatic deploy -> Deploy Branch.
-
Add all .env variables to Config vars in Heroku
-
In frontend/api.js, switch your baseurl with your heroku endpoint (ex. https://iron-clad.heroku.com)
-
Go to Netlify.com -> Click New Site -> Select your Repo from Github
-
Into Basic Build Settings,paste these ->
cd frontend && npm i && npm run build
in Build Command ->frontend/build
in Publish Directory. -
Advanced Build Settings,paste these -> `{CI: false} in new variables.