From 1f7c01b31f1e7fbc4fcd3debb12896a4705ad50a Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Sat, 8 Dec 2018 13:29:59 -0500 Subject: [PATCH] Update README.md deployment section Additionally, remove the old gitlab-ci badge. Signed-off-by: Collin J. Doering --- README.md | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 11a80fe..81c28de 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # 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) * [Tools](#tools) * [License](#license) @@ -71,21 +69,19 @@ tests. Another way to run the tests is using cabal directly by running `cabal te ## Deploying -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: -``` -Usage: init_env.sh [create|update] - init_env.sh init - init_env.sh info - init_env.sh [help|--help|-h] -``` + - default (unused) + - staging + - production -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: -``` -./init-env.sh init -./init-env.sh create -``` + $ cd infra + $ terraform workspace select production + $ terraform plan --var-file=production.tfvars --out local.plan + $ terraform apply local.plan ## Issues