Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spike - Add demo of different content on different domains #1156

Merged
merged 1 commit into from Jun 8, 2021

Conversation

alaroia-cfa
Copy link
Contributor

localhost:3000/ looks like

image

ctc.localhost:3000/ looks like

image

Co-authored-by: Asheesh Laroia <alaroia@codeforamerica.org>
@alaroia-cfa alaroia-cfa changed the title Add demo of different content on different domains Spike - Add demo of different content on different domains Jun 7, 2021
@alaroia-cfa alaroia-cfa closed this Jun 7, 2021
@bytheway875
Copy link
Contributor

@alaroia-cfa will you take me through what actually changed in the routes files?

class CtcDomain
def matches?(request)
app_base_domains = ["localhost", "getyourrefund.org", "staging.getyourrefund.org", "demo.getyourrefund.org"]
ctc_hosts = app_base_domains.map { |domain| ["ctc.#{domain}", "www.ctc.#{domain}"] }.flatten
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that the ctc domains should work fine out of the box in demo and staging? Should we attempt to push this to staging to validate that?

@bytheway875
Copy link
Contributor

Screen Shot 2021-06-07 at 5 01 39 PM
Screen Shot 2021-06-07 at 5 02 50 PM

I think there are some things we need to configure in order to get this working on staging. Before we commit to going with this approach, should we ensure we can get it working on the staging environment?

@bytheway875 bytheway875 reopened this Jun 7, 2021
@bytheway875 bytheway875 marked this pull request as ready for review June 7, 2021 22:43
@bytheway875
Copy link
Contributor

Got this working on staging after doing the Route53/Aptible setup that was necessary!

Screen Shot 2021-06-07 at 5 42 40 PM

@bytheway875 bytheway875 merged commit e824311 into main Jun 8, 2021
@mpidcock mpidcock deleted the ctc-domain-different-content-spike branch December 2, 2023 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants