@sabarasaba wrote:
Hello,
I've got a problem and I'm not sure the solution I found is the best solution to it. I have an express app that serves a bunch of pages, in one of those pages(
/user/dashboard
) I would like to run an ember-cli app with the only caveat is that that route is authenticated. So when the user navigates to that route, express will send the session cookie and the ember app will boot up allowing it to make calls to the private API. Now this works fine when I build my app for production and dump the dist folder somewhere in the/public
folder and serve that, the problem I'm facing is how to go about developing with that workflow in mind. Ideally I would like to keep booth as independent apps and only having them merged once its ready for production.I was thinking about doing
ember build --watch
and symlink the/dist
folder to myexpress-app/public/user-dashboard/
directory. I somehow think that there must be a better way to accomplish this, any ideas?Thanks.
Posts: 1
Participants: 1