nextstrain / nextstrain.org

The Nextstrain website
https://nextstrain.org
GNU Affero General Public License v3.0
87 stars 49 forks source link

[dev] make it easy to run in 'production' locally #820

Open jameshadfield opened 2 months ago

jameshadfield commented 2 months ago

The more closely a local server can run compared to the production heroku server the easier it is to test and debug.

Currently it is difficult to run the server locally with NODE_ENV=production, which is one reason we run tests (including for CI) in development mode.

The main stumbling blocks seem to be:

tsibley commented 2 months ago

This would be nice, for sure. It's totally possible. I not-infrequently run in true production mode with local Redis, local SSL, local secrets and encryption keys, etc. But yeah, it's a bit of setup (though not too onerous that I can't do it quickly).