Hello, I followed all the steps in the README but the final one gives me an error:

# node server.js
Started http server.
info - socket.io started
warn - error raised: Error: getaddrinfo ENOENT

This is my first time using node.js, so I'm not sure what I'm doing wrong. Could anyone help me? Thanks

Comments

adammalone’s picture

I'm using a multisite set up with aegir and get this issue also.

The issue goes away when I specify the following in my nodejs.config.js

settings = {
  scheme: 'http',
  port: 8081,
  host: 'drupal7.local.mysite.com',
  resource: '/socket.io',
  serviceKey: 'SERVICEKEY',
  backend: {
    port: 80,
    host: 'drupal7.local.mysite.com',
    scheme: 'http',
    basePath: '',
    messagePath: '/nodejs/message'
  },

With drupal7.local.mysite.com being set to 127.0.0.1 in my /etc/hosts file

socialnicheguru’s picture