Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Outline

Scripts

To run scripts in Sails, one just needs to sails run SCRIPT_NAME, where SCRIPT_NAME is the file name (minus extension) in the scripts folder.

Current Scripts

Command File Inputs Description
sails run create-admin
create-admin.js
  • NONE (interactive)
Create an ADMIN user in the configured datastore. Can only be run once. For safety, if there is an active admin user found, the script will halt. The API endpoints must be used from that point forward.
sails run datastore-wipe
datastore-wipe.js
  • NONE
Wipe the entire datastore this instance is connected to. Will be asked multiple, random questions to prevent disaster.

WILL NEVER RUN ON PRODUCTION FOR SAFETY REASONS!

Useful Links

Sails documentation for shell scripts

Morty Proxy This is a proxified and sanitized view of the page, visit original site.