Почему не меняется IP?
module.exports = {
mode: "universal",
cache: process.env.NODE_ENV === "production",
env: {
api: process.env.NODE_ENV === "development" ? "http://127.0.0.160:8090" : "https://api.domain.cn"
},
server: {
port: process.env.NODE_ENV === "development" ? 3800 : 3001,
host: process.env.NODE_ENV === "development" ? "127.0.0.1" : "0.0.0.0"
},
...
...
"scripts": {
"dev": "NODE_ENV=development nuxt",
"build": "NODE_ENV=production nuxt build",
"start": "NODE_ENV=production nuxt",
"generate": "nuxt generate"
},
...
Всё это дело работает в докере
Когда запускаю
то в логах вижу
Attaching to ruintouch.nginx-api, ruintouch.nginx-admin, ruintouch.nuxt_public, ruintouch.app
ruintouch.nuxt_public |
ruintouch.nuxt_public | > nuxt-now-ui-kit-pro@1.0.0 start /nuxt-app
ruintouch.nuxt_public | > NODE_ENV=production nuxt
ruintouch.nuxt_public |
ruintouch.nuxt_public |
ruintouch.nuxt_public | WARN router.scrollBehavior property is deprecated in favor of using ~/app/router.scrollBehavior.js file, learn more: https://nuxtjs.org/api/configuration-router#scrollbehavior
ruintouch.nuxt_public |
ruintouch.nuxt_public |
ruintouch.nuxt_public | WARN vendor has been deprecated due to webpack4 optimization
ruintouch.nuxt_public |
ruintouch.nuxt_public | ℹ Listening on: http://172.18.0.4:3001/
ruintouch.app | [19-Nov-2019 10:29:42] NOTICE: fpm is running, pid 1
ruintouch.app | [19-Nov-2019 10:29:42] NOTICE: ready to handle connections
ruintouch.app | [19-Nov-2019 10:29:42] NOTICE: systemd monitor interval set to 10000ms
Listening on:
172.18.0.4:3001
не то что нужно
Хотя подобная конфигурация прекрасно работает на другой VPS
И вообще, я заметил, что ip меняется рандомно.