Skip to content
This repository was archived by the owner on Jan 29, 2022. It is now read-only.

Conversation

vitorbaptista
Copy link
Contributor

We only allow npm run seed if NODE_ENV == "production". This avoids us
cleaning our production database by mistake.

Fixes opentrials/opentrials#187

@vitorbaptista vitorbaptista force-pushed the feature/187-disable-seeds-in-production branch from 98a0a08 to a5ec565 Compare January 31, 2017 15:02
We only allow `npm run seed` if `NODE_ENV == "production"`. This avoids us
cleaning our production database by mistake.

Fixes opentrials/opentrials#187
We need a separate environment as we need to be able to run `npm run seed` on
staging.
@vitorbaptista vitorbaptista force-pushed the feature/187-disable-seeds-in-production branch from 11c882d to fe64668 Compare February 3, 2017 15:56
@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.222% when pulling de08160 on feature/187-disable-seeds-in-production into 4f7ecec on master.

@vitorbaptista vitorbaptista merged commit 9992014 into master Feb 3, 2017
@vitorbaptista vitorbaptista deleted the feature/187-disable-seeds-in-production branch February 3, 2017 17:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants