-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
76 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Deployment | ||
|
||
DataMade generally uses Heroku for dynamic deployments and Netlify for static | ||
deployments. However, we maintain a number of legacy applications deployed on | ||
Amazon Web Services (AWS) infrastructure. | ||
|
||
This directory contains documents relevant to all three platforms, as well as | ||
miscellaneous deployment-related activities. | ||
|
||
## Contents | ||
|
||
- [AWS](./aws) | ||
- [Heroku](./heroku) | ||
- [Netlify](./netlify) | ||
- [Domain names](domain-names.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Amazon Web Services | ||
|
||
[Until 2020](https://datamade.us/blog/why-were-switching-to-heroku/), AWS was | ||
DataMade's deployment platform of choice. We've sunset documentation of [our | ||
custom deployment framework and practices](https://github.com/datamade/deploy-a-site/), | ||
however we've migrated still-relevant documentation to this directory. | ||
|
||
## Contents | ||
|
||
- [RDS](rds.md) | ||
- [Annual server maintenace](annual-server-maintenance.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Annual server maintenance | ||
|
||
DataMade maintains about two dozen EC2 instances that host a number of legacy | ||
applications. An inventory of applications deployed on AWS infrastructure can | ||
be found [here](https://docs.google.com/spreadsheets/d/1_c1_v4IJ5wLpjUt0p0Feq3LXskItu5Ml9J6gZucSqpw/edit?usp=sharing) (internal link). | ||
|
||
Our EC2 instances are generally stable and self-sustaining, however [cruft can | ||
build up over time](https://github.com/datamade/how-to/issues/156#issue-778165823). On an annual basis, perform the following steps to free up | ||
space so applications can chug on. | ||
|
||
1. Truncate system journal files: `sudo journalctl --vacuum-size=100M` | ||
2. Purge unneeded apt packages: `sudo apt-get autoremove` | ||
- You may be prompted to run `apt --fix-broken-install`. Go ahead and do this, selecting "Keep local version" if you see any warnings that a file may have changed. You should then be able to run `autoremove` without issues. | ||
|
||
Taken together, these steps should clear up 2-3 GB of space. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Domain names | ||
|
||
DataMade uses [Namecheap](https://www.namecheap.com/) as our domain name | ||
provider. Currently, domain names we control are under Derek's personal account. | ||
|
||
If we are setting up a domain name, Derek should purchase the domain name. After | ||
purchase, Derek will share administrative privileges for the domain name with | ||
all partners and lead developers. | ||
|
||
## Sharing administrative privileges for a domain | ||
|
||
1. In the listing of domain names, click manage for the domain | ||
name you want to share privileges on. | ||
|
||
![Manage Domain](../images/account_panel.png) | ||
|
||
2. Choose the "Sharing & Transfer" tab. | ||
|
||
![Sharing and Transfer](../images/sharing_transfer.png) | ||
|
||
3. Add the user to the account using their `@datamade.us` email address and | ||
submit. | ||
|
||
4. Give the user full permissions. | ||
|
||
![Add Manager](../images/add_manager.png) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes