Elxir-Phoenix app deployment issues.
Anonymous
PROOP

a month ago

I have trying for sometime to deploy the app but it's failing. Tried railpack, nixpack custom build and

[Region: us-west1]

==============

Using Nixpacks

==============

context: kjs7-pQli

╔══════════════════════════════ Nixpacks v1.38.0 ══════════════════════════════╗

║ setup │ elixir_1_15, gcc, erlang ║

║──────────────────────────────────────────────────────────────────────────────║

║ install │ mix local.hex --force ║

║ │ mix local.rebar --force ║

║ │ mix deps.get --only prod ║

║ │ export ║

║ │ ERL_COMPILER_OPTIONS="[nowarn_missing_spec,nowarn_export_all]" ║

║ │ && mix deps.compile ║

║──────────────────────────────────────────────────────────────────────────────║

║ build │ mix compile && rm -rf assets/node_modules && cd assets && npm ║

║ │ install && cd .. && mix assets.deploy && mix release ║

║──────────────────────────────────────────────────────────────────────────────║

║ start │ _build/prod/rel/chat/bin/chat eval "Chat.Release.migrate()" && ║

║ │ _build/prod/rel/chat/bin/chat start ║

╚══════════════════════════════════════════════════════════════════════════════╝

internal

load build definition from Dockerfile

0ms

internal

load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1745885067

114ms

internal

load .dockerignore

0ms

[ 1/12] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1745885067@sha256:d45c89d80e13d7ad0fd555b5130f22a866d9dd10e861f589932303ef2314c7de

8ms

internal

load build context

0ms

[ 2/12] WORKDIR /app/ cached

0ms

[ 3/12] COPY .nixpacks/nixpkgs-c5702bd28cbde41a191a9c2a00501f18941efbd0.nix .nixpacks/nixpkgs-c5702bd28cbde41a191a9c2a00501f18941efbd0.nix

80ms

[ 4/12] RUN nix-env -if .nixpacks/nixpkgs-c5702bd28cbde41a191a9c2a00501f18941efbd0.nix && nix-collect-garbage -d

53s

16 store paths deleted, 172.37 MiB freed

[ 5/12] COPY . /app/.

437ms

[ 6/12] RUN mix local.hex --force

1s

* creating /root/.mix/archives/hex-2.3.1

[ 7/12] RUN mix local.rebar --force

1s

* creating /root/.mix/elixir/1-15/rebar3

[ 8/12] RUN mix deps.get --only prod

2s

You have added/upgraded packages you could sponsor, run mix hex.sponsor to learn more

[ 9/12] RUN export ERL_COMPILER_OPTIONS="[nowarn_missing_spec,nowarn_export_all]" && mix deps.compile

18s

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

==> decimal

Compiling 4 files (.ex)

Generated decimal app

==> result

Compiling 7 files (.ex)

Generated result app

==> mime

Compiling 1 file (.ex)

Generated mime app

==> nimble_options

Compiling 3 files (.ex)

Generated nimble_options app

==> ex_maybe

Compiling 1 file (.ex)

Generated ex_maybe app

===> Analyzing applications...

===> Compiling unicode_util_compat

===> Analyzing applications...

===> Compiling idna

===> Analyzing applications...

===> Compiling telemetry

==> telemetry_metrics

Compiling 7 files (.ex)

Generated telemetry_metrics app

===> Analyzing applications...

===> Compiling telemetry_poller

==> jason

Compiling 10 files (.ex)

Generated jason app

==> esbuild

Compiling 4 files (.ex)

Generated esbuild app

==> phoenix_html

Compiling 6 files (.ex)

Generated phoenix_html app

==> phoenix_template

Compiling 4 files (.ex)

Generated phoenix_template app

==> db_connection

Compiling 18 files (.ex)

warning: :proc_lib.set_label/1 is undefined or private

lib/db_connection/util.ex:32: DBConnection.Util.set_label/1

Generated db_connection app

==> expo

Compiling 2 files (.erl)

Compiling 22 files (.ex)

Generated expo app

==> phoenix_pubsub

Compiling 12 files (.ex)

Generated phoenix_pubsub app

==> plug_crypto

Compiling 5 files (.ex)

Generated plug_crypto app

===> Analyzing applications...

===> Compiling mimerl

==> dns_cluster

Compiling 1 file (.ex)

Generated dns_cluster app

==> xml_builder

Compiling 3 files (.ex)

Generated xml_builder app

Solved$20 Bounty

0 Replies

Railway
BOT

a month ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway 29 days ago


Status changed to Solved Anonymous 27 days ago


Loading...