https://github.com/bertrandom/cookiecutter-subdomain-bert-org
https://github.com/bertrandom/cookiecutter-subdomain-bert-org
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bertrandom/cookiecutter-subdomain-bert-org
- Owner: bertrandom
- Created: 2020-07-01T04:40:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-01T04:47:55.000Z (about 6 years ago)
- Last Synced: 2025-01-28T21:46:16.130Z (over 1 year ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cookiecutter-subdomain-bert-org
Scripts for provisioning a new static subdomain on bert.org using the wildcard certificate
Basically:
* Creates a new directory for the subdomain locally with a blank index file
* Creates a new directory on the remote and rsyncs the blank index file
* Creates two Apache configurations for the new subdomain, one that forces a redirect from http://subdomain.bert.org to https://subdomain.bert.org and one that is the actual configuration
* Reloads Apache
## installation
Install [cookiecutter](https://github.com/cookiecutter/cookiecutter)
Clone into `~/code/cookiecutter-subdomain-bert-org`
Symlink into ~/bin directory:
```
ln -s /Users/bertrand/code/cookiecutter-subdomain-bert-org/static.sh ~/bin/static
```
Then type:
```
static subdomain
```
Where subdomain is the subdomain in subdomain.bert.org to provision