mgenev / how-to-sane

A demonstration of how to use the SANE stack
http://howtosane.ninja
MIT License
163 stars 22 forks source link

Build and deploy #18

Closed kedano closed 9 years ago

kedano commented 9 years ago

According to the sanestack docs a deploy should be posbile by running the following:

From the /client folder:

ember build --environment=production --output-path=../server/assets/

And then from the /server folder

node app.js

The issue is that the index.html file does not get served, you just get the unauthorised error message from the API.

With your example, should the client and the server be deployed decoupled?

Globegitter commented 9 years ago

@kedano Can you try to add here: https://github.com/mgenev/how-to-sane/blob/master/server/config/policies.js#L37

AppController: {
  'serve': true //or if that doesn't work, try '*': true
}

and see if that fixes it?

mgenev commented 9 years ago

@kedano I'm the pushing a fix, the problem was since I had only run this in dev mode, I had secured even the controller which serves the static, exactly like @Globegitter said :D try again with the latest and you should be ok