Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 829 Bytes

Building_and_running.md

File metadata and controls

23 lines (12 loc) · 829 Bytes

Building and running

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.

Web API

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

Web app

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