loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Deploy with "slc build --pack" using datasources.production.json

Open makersu opened this issue 11 years ago • 8 comments

When I "export NODE_ENV=production", then "slc run",it go with datasources.production.json. When I "slc build --pack", then "slc deploy http://localhost:7777 xxx-x.x.x.tgz", it go with datasources.json. Is there something missing? Thanks.

makersu avatar Mar 18 '15 12:03 makersu

@sam-github @rmg Should these types of questions go to https://groups.google.com/forum/#!forum/strongloop?

superkhau avatar Mar 30 '15 16:03 superkhau

You need to set NODE_ENV in the deployed environment: slc ctl -C http://localhost:7777/ env-set NODE_ENV=production

rmg avatar Mar 30 '15 20:03 rmg

@superkhau we can answer these questions here, but only when pinged, I don't subscribe to loopback. And yes, the email list or any github issue tracker for strongloop, strong-deploy, etc. would reach us faster.

sam-github avatar Apr 20 '15 22:04 sam-github

@sam-github Sounds good, I will ping you guys directly here if I see anymore of these. We just close questions straight away on the LB team and forward users to the mailing list. I will also ask users to create issues in the strongloop-* repos directly. TY.

superkhau avatar Apr 20 '15 23:04 superkhau

@makersu Is this good to close? Did @rmg's solution work for you?

superkhau avatar Apr 20 '15 23:04 superkhau

I'd like to create a deployable .tgz package file(slc build --pack), and when I deploy it(slc deploy http://localhost:7777 xxx-x.x.x.tgz), it'll use "datasources.production.json" file. Many Thanks.

makersu avatar Apr 28 '15 06:04 makersu

@makersu Did you try @rmg's solution yet?

You need to set NODE_ENV in the deployed environment: slc ctl -C http://localhost:7777/ env-set NODE_ENV=production

Can I close this issue yet?

superkhau avatar May 14 '15 17:05 superkhau

@makersu I'm going to close this. Reopen if you are still having trouble.

superkhau avatar Jul 07 '15 01:07 superkhau