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:
HOST | GUEST | usage |
---|---|---|
80 | 8000 | HTTP |
443 | 4430 | HTTPS |
5432 | 54320 | Pgsql |
3306 | 33060 | Mysql |
Custom defined ports: (mnemonic 80** → 81**)
guest ports on the range 8080....8090 are forwarded to host 8180....8190
HOST | GUEST | usage |
---|---|---|
8080 | 8180 | |
8081 | 8181 | |
8082 | 8182 | |
8083 | 8183 |
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