Ciao,
Stavo cercando di avviare un’installazione di sviluppo di Ubuntu per lavorare sulla nuova versione del mio tema. È la versione server del sistema operativo, quindi non posso accedere direttamente a Firefox. Non posso eseguire un’installazione normale perché :80 è occupato da Pi-hole (e la configurazione di nginx causerà più problemi di quanti ne valga la pena).
Se vado al suo IP locale e :4200, dice che non riesce a connettersi:
C’è un modo per farlo funzionare su 0.0.0.0:4200 (o per quanto riguarda 192.168.0.24:4200)? Grazie!
sam
(Sam Saffron)
14 Maggio 2024, 6:47am
2
È rischioso, perché non vuoi aprirlo al mondo…
Penso che questo faccia un buon lavoro nel rispondere?
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 Mi Piace
La macchina non è inoltrata, non sarà aperta a Internet.
La mia conclusione dall’IA è stata --b 0.0.0.0, proverò questo quando potrò.
Non sembra ancora funzionare correttamente?
Posso accedere ad altre cose in esecuzione senza problemi…