Skip to content

rbaks/m1p9mean-andrianina

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

m1p9mean-andrianina

Setup Heroku apps

login with heroku CLI

$ heroku login

Create backend and frontend apps

$ heroku create ekaly-backend

Add and rename Heroku remotes

$ heroku git:remote -a ekaly-backend
$ git remote rename heroku backend

Setup Heroku deployment

Make sure to have git-subtree installed.

In package.json of each project

"scripts": {
+   "publishToHeroku": "cd ../ && git subtree push --prefix api backend main || true",
    "clean": "rimraf dist logs",
    ...
  },

Setup environment variables

Run the command

$ heroku config:set KEY=VALUE --remote backend

Deploy to Heroku

$ yarn publishToHeroku

About

Mean stack CRUD test project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published