{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/1205","repository_url":"https://api.github.com/repos/ionic-team/ionic-cli","labels_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/1205/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/1205/comments","events_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/1205/events","html_url":"https://github.com/ionic-team/ionic-cli/issues/1205","id":167460504,"number":1205,"title":"Feature request: Ionic 2 (dev/prod) environment variables configuration","user":{"login":"jgw96","id":8823093,"avatar_url":"https://avatars3.githubusercontent.com/u/8823093?v=4","gravatar_id":"","url":"https://api.github.com/users/jgw96","html_url":"https://github.com/jgw96","followers_url":"https://api.github.com/users/jgw96/followers","following_url":"https://api.github.com/users/jgw96/following{/other_user}","gists_url":"https://api.github.com/users/jgw96/gists{/gist_id}","starred_url":"https://api.github.com/users/jgw96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgw96/subscriptions","organizations_url":"https://api.github.com/users/jgw96/orgs","repos_url":"https://api.github.com/users/jgw96/repos","events_url":"https://api.github.com/users/jgw96/events{/privacy}","received_events_url":"https://api.github.com/users/jgw96/received_events","type":"User","site_admin":false},"labels":[{"id":66857620,"url":"https://api.github.com/repos/ionic-team/ionic-cli/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"dwieeb","id":236501,"avatar_url":"https://avatars3.githubusercontent.com/u/236501?v=4","gravatar_id":"","url":"https://api.github.com/users/dwieeb","html_url":"https://github.com/dwieeb","followers_url":"https://api.github.com/users/dwieeb/followers","following_url":"https://api.github.com/users/dwieeb/following{/other_user}","gists_url":"https://api.github.com/users/dwieeb/gists{/gist_id}","starred_url":"https://api.github.com/users/dwieeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwieeb/subscriptions","organizations_url":"https://api.github.com/users/dwieeb/orgs","repos_url":"https://api.github.com/users/dwieeb/repos","events_url":"https://api.github.com/users/dwieeb/events{/privacy}","received_events_url":"https://api.github.com/users/dwieeb/received_events","type":"User","site_admin":false},"assignees":[{"login":"dwieeb","id":236501,"avatar_url":"https://avatars3.githubusercontent.com/u/236501?v=4","gravatar_id":"","url":"https://api.github.com/users/dwieeb","html_url":"https://github.com/dwieeb","followers_url":"https://api.github.com/users/dwieeb/followers","following_url":"https://api.github.com/users/dwieeb/following{/other_user}","gists_url":"https://api.github.com/users/dwieeb/gists{/gist_id}","starred_url":"https://api.github.com/users/dwieeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwieeb/subscriptions","organizations_url":"https://api.github.com/users/dwieeb/orgs","repos_url":"https://api.github.com/users/dwieeb/repos","events_url":"https://api.github.com/users/dwieeb/events{/privacy}","received_events_url":"https://api.github.com/users/dwieeb/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ionic-team/ionic-cli/milestones/11","html_url":"https://github.com/ionic-team/ionic-cli/milestone/11","labels_url":"https://api.github.com/repos/ionic-team/ionic-cli/milestones/11/labels","id":2489181,"number":11,"title":"CLI Future","description":"Just a placeholder milestone for issues that are likely (but not guaranteed) to be looked into down the road.","creator":{"login":"dwieeb","id":236501,"avatar_url":"https://avatars3.githubusercontent.com/u/236501?v=4","gravatar_id":"","url":"https://api.github.com/users/dwieeb","html_url":"https://github.com/dwieeb","followers_url":"https://api.github.com/users/dwieeb/followers","following_url":"https://api.github.com/users/dwieeb/following{/other_user}","gists_url":"https://api.github.com/users/dwieeb/gists{/gist_id}","starred_url":"https://api.github.com/users/dwieeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwieeb/subscriptions","organizations_url":"https://api.github.com/users/dwieeb/orgs","repos_url":"https://api.github.com/users/dwieeb/repos","events_url":"https://api.github.com/users/dwieeb/events{/privacy}","received_events_url":"https://api.github.com/users/dwieeb/received_events","type":"User","site_admin":false},"open_issues":39,"closed_issues":20,"state":"open","created_at":"2017-04-28T23:34:38Z","updated_at":"2017-11-27T17:19:14Z","due_on":null,"closed_at":null},"comments":85,"created_at":"2016-07-25T20:42:07Z","updated_at":"2017-11-28T11:48:10Z","closed_at":null,"author_association":"MEMBER","body":"_From @amreladawy on July 24, 2016 6:58_\n#### Short description of the problem:\n\nIt is a feature request. \nJust like Angular2, I hope that Ionic can provide 2 files (environment.dev.ts and environment.prod.ts) that would contain variables with different values corresponding to production and development environment. \nDuring the build, the appropriate file to be copied and bundled within the app artifact. \n\n**Which Ionic Version?**  2.x\n\n https://forum.ionicframework.com/t/ionic-2-environment-variables-config-setup/58147/1 \n\nhttps://stackoverflow.com/questions/36004810/how-to-config-different-development-environment-in-angular-2-app\n\n_Copied from original issue: driftyco/ionic#7413_\n"},"comment":{"url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/comments/347499384","html_url":"https://github.com/ionic-team/ionic-cli/issues/1205#issuecomment-347499384","issue_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/1205","id":347499384,"user":{"login":"lucasbasquerotto","id":19873627,"avatar_url":"https://avatars1.githubusercontent.com/u/19873627?v=4","gravatar_id":"","url":"https://api.github.com/users/lucasbasquerotto","html_url":"https://github.com/lucasbasquerotto","followers_url":"https://api.github.com/users/lucasbasquerotto/followers","following_url":"https://api.github.com/users/lucasbasquerotto/following{/other_user}","gists_url":"https://api.github.com/users/lucasbasquerotto/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasbasquerotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasbasquerotto/subscriptions","organizations_url":"https://api.github.com/users/lucasbasquerotto/orgs","repos_url":"https://api.github.com/users/lucasbasquerotto/repos","events_url":"https://api.github.com/users/lucasbasquerotto/events{/privacy}","received_events_url":"https://api.github.com/users/lucasbasquerotto/received_events","type":"User","site_admin":false},"created_at":"2017-11-28T11:48:10Z","updated_at":"2017-11-28T11:48:10Z","author_association":"NONE","body":"@ThunderBirdsX3 I'm using the environment like in this repository\r\n\r\n[https://github.com/ajonp/angularfire2-env-issue](https://github.com/ajonp/angularfire2-env-issue)\r\n\r\nand not from the one you linked above, so I don't know exactly what you are having. Are you receiving the error in the build step or at runtime? I think it is in the build step, if so it is in the `ngc` step or `webpack` (or some other step)? \r\n\r\nHow are you environment files named? Make sure your `webpack.config.ts` generate the correct name (you may log it to see in your console). There is this line in the instructions from the link you showed:\r\n\r\n`var filePath = './src/environments/environment' + (env === 'prod' ? '' : '.' + env) + '.ts';`\r\n\r\nThis means that if your env is `prod` the file is `environment.ts` and not `environment.prod.ts`. The error may be in the file names.\r\n\r\nIf this doesn't solve your problem I don't know what could be the problem. If you can create a demo repository on github and post the link I could try to reproduce in my machine."}}
{"actor":{"display_login":"lucasbasquerotto"}}