tarlepp / angular-sailsjs-boilerplate

'Boilerplate' for AngularJS + Sails.js
MIT License
307 stars 87 forks source link

angularSails sending __getcookie to http://localhost:1337 in production #117

Closed beaverusiv closed 8 years ago

beaverusiv commented 8 years ago

I have deployed a project based on this repository but angularSails is trying to GET http://localhost:1337/__getcookie when it should be trying to GET https://api.productionsite.co.nz/__getcookie.

Is there a way to set this as an option in the app, currently it is hardcoded to localhost in ngsails.io.js.

beaverusiv commented 8 years ago

Erm, my fault. I had run gulp dist before setting the URL in @@backendUrl.

tarlepp commented 8 years ago

Just want to be sure that you change that in https://github.com/tarlepp/angular-sailsjs-boilerplate-frontend/tree/master/config there and not directly in your index.html.

beaverusiv commented 8 years ago

Yes frontend/config/config.json.