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

Update deployment guide for different environments #207

Merged
merged 8 commits into from May 13, 2024

Conversation

dinoboy197
Copy link
Contributor

@dinoboy197 dinoboy197 commented Apr 27, 2024

Updated deployment instructions per updated install on 2024-04-27.

Fully rendered markdown.

Copy link

vercel bot commented Apr 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hierr ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2024 0:23am

@dinoboy197 dinoboy197 marked this pull request as ready for review April 28, 2024 04:33
@dinoboy197 dinoboy197 requested a review from a team as a code owner April 28, 2024 04:33
tyliec
tyliec previously approved these changes May 9, 2024
1. You should now see your condition in the list.
1. Scroll down to the Action section and enter these settings:
1. Select Redirect as the Action type.
1. Type https://<Replace with your host name>/ in the Redirect URL field.
Copy link
Member

Choose a reason for hiding this comment

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

nit: This is showing up as this:

Screenshot 2024-05-08 at 10 35 55 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you found a bunch of old bugs that show up as new due to indentation changes! Fixed anyway :)

1. Click "Back to Rules"
1. Choose the ‘Add Rule’ action from the right pane of the management console, and select the ‘Reverse Proxy Rule’ from the ‘Inbound and Outbound Rules’ category.
1. If asked to enable proxy functionality, click “OK”.
1. Enter localhost:<Environment port> as where requests will be forwarded
Copy link
Member

Choose a reason for hiding this comment

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

This is also weird, probably due to the < and > characters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

1. Click on enable SSL offloading.
1. Click on Use Server Name Indication.
1. In Outbound rules, Click on Rewrite domain names
- From localhost:<Environment port> to <YourDomain>
Copy link
Member

Choose a reason for hiding this comment

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

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

1. Specify https and hostname is <YourDomain>
1. Save that
1. This page should now show http and https bindings. Close the window.
1. Visit http://<YourDomain> from a web browser other than the VM. Your browser should be redirected to https://<YourDomain> and it should use TLS to secure the website.
Copy link
Member

Choose a reason for hiding this comment

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

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

1. Close Certify the Web
1. Open “Internet Information Services (IIS) manager”:
1. Do this N times (for each environment you want to create: production, test, etc.) inside of Certify the Web
1. Add a reverse proxy in IIS from inbound port 80 to port <Environment port> in the VM and inbound port 443 to port <Environment port> in the VM
Copy link
Member

Choose a reason for hiding this comment

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

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

1. Click “OK” when prompted to register a new contact.
1. Enter an email address for the HIERR application administrator. Scott’s email is fine.
1. Click “Yes, I agree” with the terms for the Let’s Encrypt certificate Authority, then click “Register Contact”.
1. In the next window, select “Default web site”, type “<YourDomainForEnvironment>” in the “Add domains to certificate” field, then click the green Plus sign.
Copy link
Member

Choose a reason for hiding this comment

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

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

// Windows
npm run start -- --port=<Environment Port>
```
1. Visit http://localhost:<Environment port> from the same computer and verify that you can see the HIERR application.
Copy link
Member

Choose a reason for hiding this comment

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

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

1. In the Matched URL section:
1. Set Requested URL: to Matches the Pattern.
1. Set Using to Regular Expressions.
1. Enter (.\*) as the Pattern.
Copy link
Member

Choose a reason for hiding this comment

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

This is rendering as:

Screenshot 2024-05-08 at 10 41 55 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

1. Turn off Output caching - turn off enable cache and enable kernel cache
1. Turn on TLS on port 443. This will use [Server Name Indication](https://en.wikipedia.org/wiki/Server_Name_Indication) to use multiple TLS certs, one for each environment:
1. Navigate to your website in IIS (left sidebar) and select “Bindings…” on the right hand side.
1. Specify https and hostname is <YourDomain>
Copy link
Member

Choose a reason for hiding this comment

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

same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@tyliec tyliec self-requested a review May 9, 2024 08:46
@dinoboy197 dinoboy197 merged commit e5c96e2 into main May 13, 2024
5 checks passed
@tyliec tyliec deleted the traack-deploy-updates branch May 13, 2024 21:37
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