{"action":"created","issue":{"url":"https://api.github.com/repos/azavea/nyc-trees/issues/393","labels_url":"https://api.github.com/repos/azavea/nyc-trees/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/azavea/nyc-trees/issues/393/comments","events_url":"https://api.github.com/repos/azavea/nyc-trees/issues/393/events","html_url":"https://github.com/azavea/nyc-trees/issues/393","id":55921718,"number":393,"title":"Set a specific registration link domain","user":{"login":"hectcastro","id":43639,"avatar_url":"https://avatars.githubusercontent.com/u/43639?v=3","gravatar_id":"","url":"https://api.github.com/users/hectcastro","html_url":"https://github.com/hectcastro","followers_url":"https://api.github.com/users/hectcastro/followers","following_url":"https://api.github.com/users/hectcastro/following{/other_user}","gists_url":"https://api.github.com/users/hectcastro/gists{/gist_id}","starred_url":"https://api.github.com/users/hectcastro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hectcastro/subscriptions","organizations_url":"https://api.github.com/users/hectcastro/orgs","repos_url":"https://api.github.com/users/hectcastro/repos","events_url":"https://api.github.com/users/hectcastro/events{/privacy}","received_events_url":"https://api.github.com/users/hectcastro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/azavea/nyc-trees/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-29T16:28:27Z","updated_at":"2015-03-09T19:17:42Z","closed_at":null,"body":"Right now it comes up at `example.com`:\r\n\r\n```\r\nThank you for signing up for Trees Count!\r\n\r\nYour username is work\r\nPlease click on this link to confirm your email address.\r\n\r\nexample.com/accounts/activate/****/\r\n\r\nIf you have additional questions or need help with your account, please email us at ...\r\n```"},"comment":{"url":"https://api.github.com/repos/azavea/nyc-trees/issues/comments/77922557","html_url":"https://github.com/azavea/nyc-trees/issues/393#issuecomment-77922557","issue_url":"https://api.github.com/repos/azavea/nyc-trees/issues/393","id":77922557,"user":{"login":"hectcastro","id":43639,"avatar_url":"https://avatars.githubusercontent.com/u/43639?v=3","gravatar_id":"","url":"https://api.github.com/users/hectcastro","html_url":"https://github.com/hectcastro","followers_url":"https://api.github.com/users/hectcastro/followers","following_url":"https://api.github.com/users/hectcastro/following{/other_user}","gists_url":"https://api.github.com/users/hectcastro/gists{/gist_id}","starred_url":"https://api.github.com/users/hectcastro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hectcastro/subscriptions","organizations_url":"https://api.github.com/users/hectcastro/orgs","repos_url":"https://api.github.com/users/hectcastro/repos","events_url":"https://api.github.com/users/hectcastro/events{/privacy}","received_events_url":"https://api.github.com/users/hectcastro/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T19:17:42Z","updated_at":"2015-03-09T19:17:42Z","body":"Dug into this today. I don't know if adding the endpoint to the environment works because that prevents the same AMI from being used across multiple environments. I played around with a few different approaches, and finally came to a variable that needs to be set at the time `setupdb.sh` is run:\r\n\r\n```bash\r\n$ DJANGO_SITE_DOMAIN=\"treescount.foo.com\" /opt/nyc-trees/scripts/aws/setupdb.sh\r\n```\r\n\r\nThese steps would default to the production domain and be set by a Django management command that is called within `setupdb.sh`."}}