Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repress in Production? #13

Open
nicholasalanbrown opened this issue May 29, 2015 · 1 comment
Open

Repress in Production? #13

nicholasalanbrown opened this issue May 29, 2015 · 1 comment
Assignees
Labels

Comments

@nicholasalanbrown
Copy link

Is there any way to make the package only run in development, not after a deploy?

@francocatena
Copy link
Owner

Hi @nicholasalanbrown, I think you can do something like:

Env = {
  development: function () {
    return process.env.NODE_ENV === 'development'
  }
}

As mentioned here: http://stackoverflow.com/questions/11183424

(Only works on the server, so you need to expose this via Meteor.methods or similar)

And then not include the status template. Is not ideal, but unfortunately by the time is not possible to parametrize a package inclusion on production.

Another approach is to fork this package and create your own, you need to add this on package.js

Package.describe({
  // Stuff
  debugOnly: true
})

And it will be excluded from the build process. But you also need to handle the template inclusion somehow.

Cheers.

@francocatena francocatena self-assigned this May 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants