Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment to Heroku #32

Closed
dionysiaA opened this issue May 4, 2017 · 1 comment
Closed

Deployment to Heroku #32

dionysiaA opened this issue May 4, 2017 · 1 comment

Comments

@dionysiaA
Copy link

dionysiaA commented May 4, 2017

Not clear how to deploy an app to heroku, we've tried this node tools/publish # where is the name of your web server (see ~/.ssh/config) but we are not quite sure what the host name is for a heroku app. Could you please guide us?

The steps followed were to pass an IP obtained from running this ssh -v git@heroku.com as well as the name of the app.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@koistya
Copy link
Member

koistya commented May 4, 2017

@dionysiaA you can only push the "api" (Node.js app) to Heroku (as far as I understand, it doesn't allow you to deploy multiple Docker containers configured via docker-compose.yml). Anyhow, in order to build the "api" service you can run:

$ docker-compose run --rm api /bin/sh -c "yarn install; yarn run build"

This will compile source files into the build folder (alternatively you can run yarn install; yarn run build). Then in order to build the "api" Docker image and push it to Heroku, you would run:

$ heroku container:push api

You can find more information here.

But, I would rather use either DigitalOcean or Amazon AWS where you could have SSH access, install and configure Docker Compose running (Node.js API app, Nginx, Redis and Postgres), that's where the tools/publish.js script could be handy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants