Viktor
Viktor

Reputation: 3080

Import server imports automatically in meteor shell

How can I instruct meteor shell to automatically import '/imports/startup/server/index.js';

I want to have everything that's available on server, immediately available in the shell (collections, underscorejs, etc.)

I tried creating '/imports/startup/shell/index.js';, but that does nothing.

Upvotes: 0

Views: 39

Answers (1)

Mikkel
Mikkel

Reputation: 7777

Files in /imports are not loaded by default, but files in /server are. Put your import code in, for example server/shell.js

Upvotes: 1

Related Questions