heroku-buildpack-elixir | Elixir buildpack for Heroku | Platform As A Service library
kandi X-RAY | heroku-buildpack-elixir Summary
kandi X-RAY | heroku-buildpack-elixir Summary
Elixir buildpack for Heroku.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of heroku-buildpack-elixir
heroku-buildpack-elixir Key Features
heroku-buildpack-elixir Examples and Code Snippets
Community Discussions
Trending Discussions on heroku-buildpack-elixir
QUESTION
I'm using heroku's buildpack for Elixir and one of the dependencies is failing with mix deps.get
because it's from a private Github repository.
When I tried deploying I got this error:
...ANSWER
Answered 2019-Jun-07 at 10:36The Elixir webpack does not include the steps for handling private GitHub dependencies. You can include this buildpack though to setup GitHub accordingly: https://github.com/timshadel/heroku-buildpack-github-netrc
QUESTION
Trying to use Heroku CI with Phoenix and heroku buildpack elixir.
Tests are running, but getting error message
psql: FATAL: database "u13792" does not exist
or
role "postgres" does not exist
.
ANSWER
Answered 2019-Feb-09 at 14:47OK, apparently, the config.test.ex needed a DATABASE_URL var.
For anyone coming after me, the in-dyno stuff wasn't necessary.
So the app.json can look like this:
QUESTION
I am using heroku-buildpack-elixir to deploy an application to Heroku. My application consists of a simple Plug/Cowboy setup. I noticed that when unhandled exceptions occur, a nice error message appears, showing the stack trace and the lines of code where the error appeared.
This is ok for development environments, however on production environments I do not want my code to be visible to visitors. How can I disable or override the default behaviour?
I tried setting the MIX_ENV
environment variable to prod
in Heroku with no effect.
ANSWER
Answered 2018-Sep-05 at 20:01wrap the Plug.Debugger statement in an if clause. Running in prod environment no longer show errors as html pages. source
QUESTION
I'm working on deploying a Phoenix app to Heroku, but several of the dependencies are in private Gitlab repos, and I am having trouble gaining access to them via SSH. When I try to push my app up, I hit the following error related to one of the dependencies (to which I normally have SSH access on my local machine):
...ANSWER
Answered 2017-May-22 at 20:40I pulled the source code for the buildpack and started poking around - I found that the SSH_HOST
config variable that I was setting - git@gitlab.com
- was not being found, and it was just defaulting to the single git@github.com
host that's hard-coded in... the docs say that you can add additional hosts, but it didn't seem to be working for me.
I was able to resolve this issue by cloning the buildpack and replacing line 13 in bin/compile
with
QUESTION
I'm trying to set up Phoenix 1.2 so that I have two Heroku environments: one for dev/testing (which will keep the this-app-12345.herokuapp.com url), and a standard production environment.
Currently, I set up my app the usual way:
...ANSWER
Answered 2017-May-06 at 05:06The standard way to deploy an app to multiple Heroku apps is to add multiple remotes to the repo and push to the one you want to deploy to. Making that change to config/prod.exs
will have no effect on where the app is deployed.
Here's how to add the two remotes:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install heroku-buildpack-elixir
You may need to write a new commit and push if your code was already up to date.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page