All the following procedures are to be executed on the dev environment VM using SSH. To connect to the VM using SSH, use the vagrant ssh local
command in the install directory.
The Web API should build and run when the install is done but also whenever you start the machine. You can also manually control the process as a service:
service cocorico-api-web stop
(or start
or restart
)
To debug the API, you can run it directly in your terminal and have the (error) logs:
cd /vagrant/api && npm start
The Web app is built during the install. Use the following command to re-build the Web app once:
cd /vagrant/app && npm run build
or the following command to build the Web app whenever a file changes (recommended for development):
cd /vagrant/app && npm start