Common issues and how to fix them.
Axios 404 error in the client
Check that the Gravity API is running and that server_url in client/src/settings.json points to it. The standalone server defaults to port 8080. Run npm run dev from server/ to start the API and installed clients. If port 8080 is already occupied, stop the conflicting process before restarting.
CLI toolbelt command not found
Run npm link from server/ using the Node installation you use for Gravity. This registers the gravity command.
Setup script did not complete
Check the first failing command in the terminal, your Node version against server/.nvmrc, and the sibling client directory names. The setup script uses shell syntax that requires a compatible shell. See Install Gravity for the manual dependency installation steps.
Email template not found
Run the seed file to populate the database.
// sql
node seeds/sql
// mongo
node seeds/mongo
Can’t log into Mission Control
TOKEN_SECRET in your Mission Control .env file does not match the TOKEN_SECRET in /server.
MSSQL Data Type Mismatch
MSSQL uses NVARCHAR for the foreign key IDs. If you’re using MSSQL you will need to update each specificType ID column in the migrations:
Change:
table.specificType('id', 'char(36) primary key');
To:
table.string('id', 36).notNullable().primary();