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

feat(maintenance): restart script generates nginx config from template #248

Merged
merged 2 commits into from
Nov 23, 2019

Conversation

adrienjoly
Copy link
Member

@adrienjoly adrienjoly commented Nov 23, 2019

What does this PR do / solve?

The configuration of our nginx HTTP proxy contains redundant definitions in /etc/nginx/sites-available, in order to allow no-downtime deployments. (which rely on switching from a port to another)

Redundancy makes it harder and riskier to update the nginx configuration.

Overview of changes

This PR makes the restart.sh script re-generate these two nginx configuration from a template file. => The template becomes the source of truth, and it's versionned in this repo.

How to test this PR?

Test in production :-p

@adrienjoly adrienjoly changed the title feat(refacto) nginx conf feat(maintenance): restart script generates nginx config from template Nov 23, 2019
@adrienjoly adrienjoly self-assigned this Nov 23, 2019
@adrienjoly adrienjoly added this to 📥 Inbox / ideas in Development via automation Nov 23, 2019
@adrienjoly adrienjoly marked this pull request as ready for review November 23, 2019 21:02
@adrienjoly adrienjoly merged commit efa8296 into master Nov 23, 2019
Development automation moved this from 📥 Inbox / ideas to ✔️ Done / pending QA Nov 23, 2019
@adrienjoly adrienjoly deleted the feat/refacto-nginx-conf branch November 23, 2019 21:02
adrienjoly pushed a commit that referenced this pull request Nov 23, 2019
# [1.17.0](v1.16.0...v1.17.0) (2019-11-23)

### Features

* **maintenance:** restart script generates nginx config from template ([#248](#248)) ([efa8296](efa8296))
@adrienjoly adrienjoly moved this from ✔️ Done / pending QA to 🌲 In production in Development Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development
  
🌲 In production
Development

Successfully merging this pull request may close these issues.

None yet

1 participant