I building a simple web app AngularJS and Flask (REST arch.) I'm using yeoman to generate all boilerplate. The problem is with heroku hosting which requires deploying through git. The structure of project:
client <- content generated by yeoman
server
|-- static
|-- venv
server.py <- flask
Procfile
.gitifnore
...
I modified grunt script so at the end dist
folder is copied to static. For now dist
is in .gitignore, but I'm thinking about a few possible solutions
- Sepreate repo for deployment
- Commiting to every build
- Build on Heroku
Every one has pros and cons (Don't know if 3. is even possible). Is there a better way?
EDIT:
Here is current state of affair. grunt copy dist
client to heroku\static
and for now I manually copy server. But I'm not sure how to push it to heroku. git subtree push --prefix heroku heroku master
gives me rejected msg. I set remotes and try all combinations, but no success so far.
.git
.gitignore
README.md
client
heroku
.git
static
Procfile
requriements.txt
server