Skip to content

Configuring a staging environment in Shakapacker 7 #337

Closed Answered by Judahmeek
jpwilksch asked this question in Q&A
Discussion options

You must be logged in to vote

@jpwilksch I'm glad that you found a solution that works for you.

The relevant part of our documentation from the section you linked to is:

Please note, NODE_ENV can either be set to production, development or test. This means you don't need to create additional environment files inside config/shakapacker/* and instead use shakapacker.yml to load different configurations using RAILS_ENV.

To clarify, Shakapacker supports custom RAILS_ENV values, but Shakapacker does not support custom NODE_ENV values because webpack does not support custom NODE_ENV values.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ahangarha
Comment options

@jpwilksch
Comment options

Answer selected by Judahmeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants