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

How to add custom deployment config? #9

Closed
rbudiharso opened this issue Oct 26, 2016 · 5 comments · Fixed by #10
Closed

How to add custom deployment config? #9

rbudiharso opened this issue Oct 26, 2016 · 5 comments · Fixed by #10
Labels

Comments

@rbudiharso
Copy link

I want to have a staging environment, how to add the config for it? when I add staging.json in electrode config folder and run the server with NODE_ENV=staging, its complain it cannot found staging.json

screenshot from 2016-10-26 10-47-12

@rbudiharso rbudiharso changed the title How to add custom deployment config How to add custom deployment config? Oct 26, 2016
@ananavati
Copy link
Contributor

@rbudiharso

thanks for checking out electrode

looking at the logs from the screenshot looks like it is running in PROD mode, could you check and see what is the npm task prod which gets run as part of npm run prod

@jchip
Copy link
Member

jchip commented Oct 27, 2016

@rbudiharso thanks for reporting this issue. fixing.

@rbudiharso
Copy link
Author

Thank you for acknowledging this, but beside staging, how can I add a custom config? say I want to create a demo environment, what should I do?

@jchip
Copy link
Member

jchip commented Oct 28, 2016

@rbudiharso add a file config/demo.json and run with NODE_ENV=demo. You will need changes in #10 of course.

@caoyangs
Copy link
Contributor

+ electrode-server@1.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants