shotleybuilder

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?

Showing Posts 1 to 10

NobbZ

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

shotleybuilder OP

@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 :slight_smile:

axelson

axelson

Scenic Core Team

Yes that is correct, it should go at the top of your repository.

shotleybuilder

shotleybuilder OP

Hi Jason @axelson
I’ve built my first release :grinning: using distillery and only ran into a couple of errors the most notable being:

Duplicated modules: 
unicode_util specified in unicode_util_compat and stdlib

Which was fixed with
mix deps.clean --all && mix deps.get

But 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 master

The 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

shotleybuilder OP

Well, I ran the following command:

gigalixir set_git_remote app_name

And it recognised:

git push gigalixir master

But 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

axelson

Scenic Core Team

@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

shotleybuilder OP

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

shotleybuilder OP

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

axelson

Scenic Core Team

I’m glad you got it sorted out! Jesse is indeed very helpful.

shotleybuilder

shotleybuilder OP

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

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
jaybe78
Hello, I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter). The diffic...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
widianto
I think I’ve found a small improvement I could contribute to <%= web_namespace %>.CoreComponents (installer/templates/phx_web/compo...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New
webofbits
Aludel - LLM Evaluation Workbench Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews