Skip to content

Deployment Checklist

Nathan Victor edited this page May 2, 2017 · 6 revisions

Home > Knowledge Base > Deployment Checklist

Deployment checklist

Below is a list of things you must review before deploying a Keystone app to the internet

Mongoose Index generation

See http://mongoosejs.com/docs/guide.html#indexes

When your application starts up, Mongoose automatically calls ensureIndex for each defined index in your schema. While nice for development, it is recommended this behavior be disabled in production since index creation can cause a significant performance impact. Disable the behavior by setting the autoIndex option of your schema to false.

2G of Memory Recommended

Due to at least 1 dependency (mentioned here)- make sure you have at least 2G of RAM available on your build machine.

Running KeystoneJS in Production

When you deploy your KeystoneJS app to production, be sure to set your ENV environment variable to production. You can do this by setting NODE_ENV=production in your .env file, which gets handled by dotenv.

Setting your environment enables certain features, including template caching, simpler error reporting and html minification, that are important in production but annoying in development.