meteor-up icon indicating copy to clipboard operation
meteor-up copied to clipboard

Access App through Ip and port instead of a domain name

Open brightchip opened this issue 5 years ago • 4 comments

The app could work greatly with a domain, But here I want to directly access the website by IP address.

MUP config like: `module.exports = { servers: { two: { host: '123.456.789.987', username: 'username', password: 'password' }, },

app: {
    // TODO: change app name and path
    name: 'app',
    servers: {
        two: {},
    },
    env: {
        // TODO: Change to your app's url
        // If you are using ssl, it needs to start with https://
        ROOT_URL: '123.456.789.987',
        MONGO_URL: 'MONGO_URL',
        MAIL_URL: "MAIL_URL",
        PORT: 5001
    },
		...
},
	...

};`

Screenshot of "docker ps" image

brightchip avatar May 31 '20 11:05 brightchip

I'm having issues doing that same thing, I get what it looks like a successful deployment but I can't access the app through the IP. Are you having the same issue?

sebaslh12 avatar Jun 11 '20 23:06 sebaslh12

Yeah, and that's why i bought another domain just for test.

brightchip avatar Jun 12 '20 02:06 brightchip

This should work, and I frequently deploy apps this way when testing mup. If you run mup status, it will check if the app is accessible and for common issues.

zodern avatar Jun 12 '20 02:06 zodern

The status command shows that everything is running but not accessible (I'm assuming after checking the status of an accessible app):

App running at http://104.248.3.184:80
      - Available in app's docker container: true
      - Available on server: false
      - Available on local computer: false

The logs say that the app is running on localhost:3000.

sebaslh12 avatar Jun 12 '20 03:06 sebaslh12