sturoid
sturoid

Reputation: 2721

Use ember cli mock server as actual server

I'm using ember-cli with Firebase for my data. I also have a simple server file I created with http-mock that handles some processes for Twilio. Is there a way to use that http-mock as an actual server on Heroku? I have found an embercli stack for heroku but I'm not sure how to make that use the server file I have:

https://github.com/tonycoco/heroku-buildpack-ember-cli

Thank you in advance for the help.

Upvotes: 1

Views: 311

Answers (1)

Sam Selikoff
Sam Selikoff

Reputation: 12694

I believe that build pack just deploys your app's static files to Heroku.

The http-mock file you're working with within Ember CLI is a Node Express app. So, you'd need to host it on a server that can serve node apps somewhere.

In theory you could write a script that does that (deploys it separately) while keeping it within your main repo, but like others have said that's probably not a good idea.

In the future, though, you probably will be able to use http-mocks both for clicking around your app with ember serve, and for use in your tests.

Upvotes: 1

Related Questions