node.jsexpresslocomotivejs

LocomotiveJS Server Port Change


I am using locomotivejs for my node project. When I fire the lcm server command locomotive listen to port 3000 as default. I tried to change it but nothig worked. I thin I am missing something. From where should I change the listened port for lcm server command?


Solution

  • You can pass a the port as an option to the lcm command using -p, as such:

    lcm server -p 1234
    

    Ref: The source never lies ; )