Where to find things (ports and other)

Ports

(You are: on the host)

Ports follow a standard:

Homestead defined ports: (mnemonic add trailing zeroes)

guest ports are forwarded to the host port + trailing zeroes:

HOSTGUESTusage
808000

HTTP

4434430HTTPS
543254320Pgsql
330633060Mysql


Custom defined ports: (mnemonic 80** → 81**)

guest ports on the range 8080....8090 are forwarded to host 8180....8190

HOSTGUESTusage
80808180
80818181
80828182
80838183


Notice these custom-defined ports are set in <project root>/.homestead/Homestead.yaml

If you want to add ports for your own environment, modify that file and run (from <project root>/oms-homestead)

$ vagrant provision

Node console (for EVENTS)

(You are: on the guest)

The first time you login on the guest, there is a tmux shell running the node instance. Attach to the tmux instance (called Workspace):

$ tmux attach -t Workspace

you will see the console of the node process. From there you can read the logs or stop it in order to restart. Once you stop it for the first time, if you are not familiar with tmux I advise you to restart the node service outside tmux - in other words, once you press ^C to stop node, press ^D to exit tmux. Then run the command (assuming you are into /home/vagrant/oms-project/oms-events-module) 

$ node lib/server.js