Привет,
Я пытался запустить установку Ubuntu для разработки, чтобы работать над новой версией моей темы. Это серверная версия ОС, поэтому я не могу напрямую получить доступ к Firefox. Я не могу выполнить обычную установку, потому что порт :80 занят Pi-hole (а настройка nginx создаст больше проблем, чем того стоит).
Если я перехожу на его локальный IP-адрес и порт :4200, появляется сообщение о том, что подключение невозможно:
Есть ли способ заставить его работать на 0.0.0.0:4200 (или, в данном случае, на 192.168.0.24:4200)? Спасибо!
sam
(Sam Saffron)
14.Май.2024 06:47:24
2
Это рискованно, ведь вы не хотите открывать это всему миру…
Думаю, это вполне адекватно отвечает на вопрос?
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
Машина не проброшена, она не будет доступна в интернете.
Мой вывод из ответа ИИ — --b 0.0.0.0, попробую это, когда смогу.
По-прежнему кажется, что работает неправильно?
Я могу получить доступ к другим вещам, которые работают нормально…