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

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
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
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apz
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
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
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews