WolfDan

WolfDan

Hello all!

I’ve come from another languages like python, c#, php and make it run in a server its relative easy, but I’m having problem with phoenix…

First of all my servers are in Google Cloud Platform, this makes that solutions like edeliver dont work for me (I did achieve it to work, I’m pretty sure its because the high level security for ssh connection in GCP [good for security painful for development])

I already test with this tutorial

https://blog.polyscribe.io/a-complete-guide-to-deploying-elixir-phoenix-applications-on-kubernetes-part-1-setting-up-d88b35b64dcd

It works fine except for the DB that never connects (I don’t have experience with Docker and kubernetes) and I dont need many nodes with load balancing etc… This is pretty small project that I’m working right now, its enought with a instance running postgres and phoenix.

So my goal as mention before is to run Phoenix with postgre in a GCP instance.

If someone has experience with this can give me a hand to make this release I’ll be very greatful!

Greetings!

Showing Posts 1 to 1

WolfDan

WolfDan OP

I have solve it (I dont know if its the correct way but it works for me) (I dont use any brunch or html so may be differ in a app with this features)

Create and ubuntu instance → Install and setup postgre:

(cool guide) community/archived/setting-up-postgres.md at master · GoogleCloudPlatform/community · GitHub

→ Install erlang etc on the machine:

wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && \
  dpkg -i erlang-solutions_1.0_all.deb && \
  apt-get update && \
  apt-get install -y esl-erlang elixir build-essential openssh-server git locales

→ Clone you project in the instance (already configured the production data and with distillery dep added) → mix deps.get, compile, release --env=prod

→ Run the command you want that gives distillery and thats all! (if you set in prod port 80 you need run this command as sudo)

Greetings!

— All posts loaded —

Where Next? Top

Trending in Questions Top

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
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
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

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews