Answer the question
In order to leave comments, you need to log in
Why can't you change the ip address?
Why doesn't the IP change?
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 | > [email protected] 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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question