Hola,
Estaba intentando iniciar una instalación de desarrollo de Ubuntu para trabajar en la nueva versión de mi tema. Es la versión de servidor del sistema operativo, por lo que no puedo acceder directamente a Firefox. No puedo ejecutar una instalación normal porque :80 está ocupado por Pi-hole (y configurar nginx causará más problemas de los que vale la pena).
Si voy a su IP local y :4200, dice que no puede conectarse:
¿Hay alguna forma de hacer que se ejecute en 0.0.0.0:4200 (o en este caso 192.168.0.24:4200)? ¡Gracias!
sam
(Sam Saffron)
14 Mayo, 2024 06:47
2
Es arriesgado, porque no quieres abrir esto al mundo…
¿Creo que esto hace un trabajo razonable al responder?
AI Conversation with Gpt-4o
sam : Looking at discourse source code is there some way to get a dev install to bind to a custom ip or public ip?
gpt4o_bot : Yes, you can bind a Discourse development installation to a custom IP address or public IP. This is typically controlled via your web server or the configuration of the Discourse app itself.
For Discourse running in development mode via the Rails server, you can specify the IP address it binds to when you start the server. By default, it binds to localhost
Here’s how you can do it:
Start the …
sam : ok but search the source code there may be a custom ENV var for it…
gpt4o_bot : It appears that the Discourse repository includes a relevant environment variable named UNICORN_BIND_ALL, which is used in the unicorn configuration. You can use this environment variable to control the IP address that the Unicorn server binds to. Here are the details:
File: config/unicorn.conf.rb
Code Snippet:
listen ENV["UNICORN_LISTENER"] || "#{(ENV["UNICORN_BIND_ALL"] ? "" : "127.0.0…
...
Read full transcript
2 Me gusta
La máquina no se reenvía, no estará abierta a Internet.
Mi conclusión de la IA fue --b 0.0.0.0, lo intentaré cuando pueda.
¿Todavía no parece funcionar bien?
Puedo acceder a otras cosas que funcionan bien…