shotleybuilder

shotleybuilder

Gigalixir and .buildpack

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?

Most Liked

shotleybuilder

shotleybuilder

Last post on this thread from me. The final piece of my jigsaw was pointing my newly minted domain at the newly created app instance on gigalixir. I struggled embarrassingly with this. And serves to show that there is a market for PaaS - people like me!

The interface on 1&1 just had me really confused, but my lightbulb, and this’ll make you laugh, was realising www was a subdomain. Now in the last 6-months I’ve lost count of the new tech I’ve had to learn-ish (Elixir, Phoenix, Erlsom, Floki, Brunch, all the front end stuff, it’s a long list). Tackling 1&1 and subdomains - that’s just another very small brick in an otherwise unstable pile of bricks.

The guidance from gigalixir was spot-on but with a small edit just for me. Point a CNAME record for a www subdomain to tls.gigalixir.com.

Happy Christmas everyone.

English3000

English3000

Needed to do git subtree push --prefix <path/to/dir> gigalixir master


Then needed to add assets_path=apps/islands_interface/assets in phoenix_static_buildpack.config of /island_interface.


Then needed to tweak relative paths for phoenix and phoenix_html. And was able to deploy!

shotleybuilder

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! http://gigalixir.readthedocs.io/en/latest/main.html#how-to-create-an-app
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

@shotleybuilder did you already login on the command line?

http://gigalixir.readthedocs.io/en/latest/main.html#log-in

Otherwise maybe it’s your SSH key:
http://gigalixir.readthedocs.io/en/latest/main.html#managing-ssh-keys

Or maybe your SSH key has a passphrase set on it?
https://help.github.com/articles/working-with-ssh-key-passphrases/

What error are you getting exactly?

axelson

axelson

Scenic Core Team

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

Where Next?

Popular in Questions Top

lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
New
Phillipp
Hey, I have a NanoPi-M3 and try to install Elixir on their Ubuntu image. I followed the Raspberry Pi installation instructions from the ...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID&lt;0.412.0&gt; terminating ** (Postgrex.Error) FATAL...
New
wernerlaude
In AR this is so simple @articles = current_user.articles How to do in Ecto? def index(conn, _params) do current_user = conn.assig...
New

Other popular topics Top

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New

We're in Beta

About us Mission Statement