简体   繁体   中英

Phoenix Deployment with EXRM

I am trying to deploy a phoenix app on a Ubuntu Server with EXRM.

The release runs perfectly and the website is accessible but when I ping the release it says the

Node 'myapp@myhost' not responding to pings.

vm.args file

## Name of the node
-sname pxblog

## Cookie for distributed erlang
-setcookie pxblog

## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
## (Disabled by default..use with caution!)
##-heart

## Enable kernel poll and a few async threads
##+K true
##+A 5

## Increase number of concurrent ports/sockets
##-env ERL_MAX_PORTS 4096

## Tweak GC to run more often
##-env ERL_FULLSWEEP_AFTER 10

Updated vm.args (Solved)

## Name of the node
-sname pxblog@localhost

## Cookie for distributed erlang
-setcookie pxblog

## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
## (Disabled by default..use with caution!)
##-heart

## Enable kernel poll and a few async threads
##+K true
##+A 5

## Increase number of concurrent ports/sockets
##-env ERL_MAX_PORTS 4096

## Tweak GC to run more often
##-env ERL_FULLSWEEP_AFTER 10

Check the vm.args file. Look for a line similar to this:

## Name of the node
-name test@127.0.0.1

I suspect the name you'll find there is "myapp@myhost". Try changing it to yourappname @localhost or yourappname @127.0.0.1 . NB: I do not mean you should put the literal string yourappname there. Substitute the name of your app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM