Update README.md deployment section
Additionally, remove the old gitlab-ci badge. Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
This commit is contained in:
parent
c0498bff65
commit
1f7c01b31f
24
README.md
24
README.md
|
@ -1,7 +1,5 @@
|
||||||
# Source Code for **[#! Lambda Slang](http://blog.rekahsoft.ca)**
|
# Source Code for **[#! Lambda Slang](http://blog.rekahsoft.ca)**
|
||||||
|
|
||||||
[![build status](https://gitlab.com/rekahsoft/blog-rekahsoft/badges/master/build.svg)](https://gitlab.com/rekahsoft/blog-rekahsoft/commits/master)
|
|
||||||
|
|
||||||
* [Features](#features)
|
* [Features](#features)
|
||||||
* [Tools](#tools)
|
* [Tools](#tools)
|
||||||
* [License](#license)
|
* [License](#license)
|
||||||
|
@ -71,21 +69,19 @@ tests. Another way to run the tests is using cabal directly by running `cabal te
|
||||||
|
|
||||||
## Deploying <a name="deploying"></a>
|
## Deploying <a name="deploying"></a>
|
||||||
|
|
||||||
To deploy the site, use the provided `init-env.sh` script. Its usage is as follows:
|
Terraform is used to deploy this site. Its configuration files are located in `./infra`. Three
|
||||||
|
workspaces are currently available, including:
|
||||||
|
|
||||||
```
|
- default (unused)
|
||||||
Usage: init_env.sh [create|update] <stack-name> <cf-bucket> <cnames>
|
- staging
|
||||||
init_env.sh init <cf-bucket>
|
- production
|
||||||
init_env.sh info <stack-name>
|
|
||||||
init_env.sh [help|--help|-h]
|
|
||||||
```
|
|
||||||
|
|
||||||
First create required initial resources, then create the projects stack, thereby deploying the project.
|
For example, this is how to deploy the production version of the site:
|
||||||
|
|
||||||
```
|
$ cd infra
|
||||||
./init-env.sh init <cf-bucket-name>
|
$ terraform workspace select production
|
||||||
./init-env.sh create <stack-name> <cf-bucket-name> <cnames>
|
$ terraform plan --var-file=production.tfvars --out local.plan
|
||||||
```
|
$ terraform apply local.plan
|
||||||
|
|
||||||
## Issues <a name="issues"></a>
|
## Issues <a name="issues"></a>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue