civicmakers / client

This is the code repository for the CivicMakers knowledge sharing experiment.
http://civicmakers.firebaseapp.com
GNU General Public License v3.0
4 stars 9 forks source link

set up environment variables #200

Closed ybentz closed 8 years ago

ybentz commented 8 years ago

Sets up the environment variable for Firebase to go to the correct DB (dev/production). It's done by a grunt task called grunt-ng-constant which defines the env vars in the gruntfile itself and creates a config module that includes an ENV constant according to the used grunt task.

To use when developing just run 'grunt serve'. To work on production DB locally run 'grunt serve:dist'. When deploying new code to production through the firebase hosting (npm run pre-deploy, npm run deploy) it uses the 'grunt build' task which updates the configuration to the production env.

ybentz commented 8 years ago

Closes https://github.com/civicmakers/client/issues/192