#TIL 18 - Deploy to heroku from sub directory
![blog_hero_#TIL 18 - Deploy to heroku from sub directory](/_next/image?url=%2Fstatic%2Ftil.jpeg&w=2048&q=75)
Step 1: Add Heroku git repository
# e.g: Add nft-app-api repo
heroku git:remote -a nft-app-api
Step: Deploy from sub folder with git substree
# e.g: server is the sub directory
git subtree push --prefix server heroku master