0.0.2 • Published 4 years ago
spwxp v0.0.2
spwx
Spaceworx commandline tool
Use this to sync changes between your local folder and the servers where your tenant and landlord are running
Setup
You need a .spaceworx.config
file in your project folder.
The structure of it is:
{
"url":"http://tenant1.iviva.cloud,
"apiKey":"SC12345"
}
This specifies the url and api key for the tenant server.
To add the landlord server:
{
"url":"http://tenant1.iviva.cloud,
"apiKey":"SC12345",
"landlord":{
"url":"http://landlord.iviva.cloud",
"apiKey":"SC:LL2323"
}
}
Usage
In the project directory run:
spwx.js pull
to download all the latest models from the respective server.
Run
spwx.js push
to update the server with your models.