shotleybuilder
The guidance states this:
“We rely on buildpacks to compile and build your release. Create a .buildpacks file with the following contents…”
http://gigalixir.readthedocs.io/en/latest/main.html#modifying-existing-app
Simple question because I’ve never done this before. What’s the .buildpack file and where does it go? My best guess is a new file called .buildpack (like .gitignore) in the very top level of my Phoenix app. Is that correct?
Trending in Questions
Hi all,
I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison....
New
I’m very new to Elixir, so sorry if this is a silly question:
I am wondering what happens to the mailbox of a process when the machine i...
New
How do I tell Hologram not to escape HTML when substituting into templates?
{Textile.render(@product.long_description)}
escapes the HTM...
New
Background
When trying to execute mix release on a Windows 11 machine for a Phoenix project I get the following error:
* assembling mark...
New
I’d like to create a file with 600 permissions (rw-------), but there’s a race condition if I create it and then change the permissions. ...
New
Is there a way to import record definitions in the iex shell for pretty printing (similar to the rr command in the erl shell)? This woul...
New
When I use Mix.install with a git dependency, using git@github.com:... how do I change the SSH identity used?
I’ve got two Github accoun...
New
Other Trending Topics
Hey there,
I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first.
...
New
Hi everyone :waving_hand:
I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #elixirconf-us
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #elixirconf-eu
- #processes
- #security
- #api
- #forms
- #performance










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
NobbZ
The linked documentation says it has to be called
.buildpacks, you even quoted that line.And I have to assume that it has to live in the git-root of your project, but that is an assumption based on how other systems are configured which do see a git repository as their atomic building block, like gitlab-ci, travis, heroku, etc…
shotleybuilder
@nobbz Norbert, too true. Atom even has an icon for .buildpacks. That’s where I’ll put it and it can only break if it’s not right
axelson
Yes that is correct, it should go at the top of your repository.
shotleybuilder
Hi Jason @axelson
using distillery and only ran into a couple of errors the most notable being:
I’ve built my first release
Which was fixed with
mix deps.clean --all && mix deps.getBut I’m not understanding a key step with the deploy to gigalixir. I’ve installed the CLI and I’m logged in to my account.
What do I have to do before this works:
git push gigalixir masterThe guidance seems to be weighted towards creating the app in gigalixir.
My project is of course working with my own git repo (local and remote).
Any pointers welcomed.
shotleybuilder
Well, I ran the following command:
gigalixir set_git_remote app_nameAnd it recognised:
git push gigalixir masterBut then it requested a username and password which are apparently not the credentials for the gigalixir CLI / account.
Bit stuck now. Hope this is useful feedback to the folks at gigalixir.
axelson
@shotleybuilder did you already login on the command line?
Otherwise maybe it’s your SSH key:
Or maybe your SSH key has a passphrase set on it?
What error are you getting exactly?
shotleybuilder
Thanks @axelson that’s an idea worth exploring since I’ve not touched ssh. Off to the day job now but I’ll return to this tonight. If that doesn’t help I’ll ask for support from the folks at gigalixir.
Yes, logged into the gigalixir command line and various commands are working against my account.
shotleybuilder
The solution.
gigalixir create --name app-name
This isn’t explicitly mentioned in the docs so far as I can see. And the thread of the instructions for those with an existing app to deploy branches before app naming gets mentioned.
@jesse has been very helpful. My next problem is the erlsom library, which is breaking my deployment, but that’s another problem for another day!
Edit
Apart from here! Moved — GIGALIXIR 1.4.0 documentation
But my thought process went along the lines of: I have my app, I don’t need to create another … and given the warnings about not being able to change names and things I didn’t want to experiment! However, deleting an app was painless
gigalixir scale -r 0 app-name
gigalixir delete_app app-name
axelson
I’m glad you got it sorted out! Jesse is indeed very helpful.
shotleybuilder
woohoo, it’s deployed! It’s not working (well, some bits are working). My goal this Christmas was a working deploy - well that’s dealt with what I thought would be the hardest part - deploying.
The last piece was switching around my erlsom dependency. The former defaults to ssh which breaks in a container (apparently, what do i know?)
From this:
{:erlsom, git: “git@github.com:willemdj/erlsom.git”}
To this:
{:erlsom, git: “GitHub - willemdj/erlsom: XML parser for Erlang · GitHub”}