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

Consider Heroku compatibility #31

Closed
satvikpendem opened this issue Apr 20, 2020 · 1 comment
Closed

Consider Heroku compatibility #31

satvikpendem opened this issue Apr 20, 2020 · 1 comment

Comments

@satvikpendem
Copy link

satvikpendem commented Apr 20, 2020

I like this project as it's a really easy to use boilerplate for Rust projects. I use Heroku sometimes and also Dokku/Docker so it would be nice to easily use canduma with Heroku instead of building it myself.

Edit: So I was able to use the buildpack at https://github.com/emk/heroku-buildpack-rust to build canduma on Dokku on a DigitalOcean droplet. Since it uses Heroku buildpacks, this should be compatible with Heroku as well. Looks like there may be some bugs with the buildpack on Heroku's buildpack library, so use the full https://github.com/emk/heroku-buildpack-rust url instead when adding the buildpack.

Heroku: heroku buildpacks:set https://github.com/emk/heroku-buildpack-rust.git
Dokku: dokku buildpacks:add https://github.com/emk/heroku-buildpack-rust.git

If you don't set the buildpack as being Rust based, Heroku/Dokku assume it's a NodeJS app due to the package.json in the directory, and the build will fail. Actually, why is there a package.json in the project anyway? Looks like it's used for linting and testing, but I'm not sure what parts are JS based exactly.

@satvikpendem satvikpendem changed the title Consider adding canduma as a Heroku buildpack Consider Heroku compatibility Apr 20, 2020
@clifinger
Copy link
Collaborator

Hi @satvikpendem, I confirm that I use https://github.com/emk/heroku-buildpack-rust and It was worked for me. you can see the procfile in the code. Feel free to t do a PR !

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