dev-resources.site
for different kinds of informations.
How to run a local Phoenix app on another machine
Published at
5/8/2024
Categories
phoenix
elixir
Author
wceolin
Author
7 person written this
wceolin
open
When you create a new Phoenix app, it uses the 127.0.0.1
IP address by default. To run it locally on another machine (e.g. your phone), you need to change this on config/dev.exs
.
Find the http
config on that file. You’ll see something like this:
http: [ip: {127, 0, 0, 1}, port: 4000]
Now, change it to:
http: [ip: {0, 0, 0, 0}, port: 4000]
That’s it! Now you’ll be able to test your Phoenix app locally on other machines by using your network’s IP address.
phoenix Article's
30 articles in total
Pseudolocalization in Phoenix with gettext_pseudolocalize
read article
Unlocking the Power of Elixir Phoenix and Rust: A Match Made for High-Performance Web Applications
read article
Sql commenter with postgrex
read article
Phoenix LiveView is slot empty?
read article
Bridging the Gap: Simplifying Live Component Invocation in Phoenix LiveView
read article
Find and Fix N+1 Queries Using AppSignal for a Phoenix App in Elixir
read article
Managing Distributed State with GenServers in Phoenix and Elixir
read article
Complete Guide: Setting up VS Code for Elixir and Phoenix Development
read article
A Complete Guide to Phoenix for Elixir Monitoring with AppSignal
read article
Better LiveView Hooks with Typescript
read article
Scaling Your Phoenix App in Elixir with FLAME
read article
Running Elixir Phoenix on Windows
read article
How to use gettext in phoenix?
read article
Custom Instrumentation for a Phoenix App in Elixir with AppSignal
read article
Building a Table of Contents Component for a Phoenix Blog
read article
Mastering Phoenix Framework - Part 2
read article
Mobile app development with LiveView Native and Elixir. Part - 3
read article
How to integrate Tabler Icons into your Phoenix project
read article
Mobile app development with LiveView Native and Elixir. Part - 2
read article
Mobile app development with LiveView Native and Elixir
read article
(Unofficial) Getting Started with Elixir Phoenix Guide
read article
Using Ecto (without Db) for validating Phoenix form
read article
API Prototypes with dbb: Another step to better prototypes
read article
Adding stream_async() to Phoenix LiveView
read article
SaladUI - Implement avatar component for Phoenix LiveView
read article
Connectivity status with Phoenix LiveView
read article
Taming data with Ecto.Enum and Ecto.Type
read article
ecto's cast/4 function explained
read article
Phoenix Liveview components for Shadcn UI
read article
How to run a local Phoenix app on another machine
currently reading
Featured ones: