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
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
Hi everyone.
My team and I have been working on a fairly modest app based around video streaming and chat, but we’ve landed a customer t...
New
Hello,
I’m trying to build a basic Phoenix web-app, and I’d like to use Tailwind.
However, when I launch mix phx.server, I get an error...
New
I really like the adapter patterns that ecto, nebulex, waffle, etc. use and would love find something similar for a key management servic...
New
Hello folks!
So at work, we are seeing some situations where we have to define some “fixed” strings that are used across the codebase in...
New
How Can I Optimise Compile Time Dependencies
I have been building an elixir application for about 2 years now. Many modules and files ha...
New
Other Trending Topics
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
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
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with.
But I don’t use it anymore.
Serverless was the promis...
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
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #ai
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #security
- #metaprogramming










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”}