|
@@ -36,10 +36,55 @@ Wow cool, we have a copy of the `kyleguy` repository on our windows computer. W
|
|
|
|
|
|
|
|
Windows is really cool they have a feature where they print red text until you close and reopen the terminal:
|
|
Windows is really cool they have a feature where they print red text until you close and reopen the terminal:
|
|
|

|
|

|
|
|
|
|
+---
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+Actually this is a good break, because we cannot use Windows Powershell we need Powershell. Yeh. I cannot fix that. Pretty wild. There is a difference. We will jump back here, but we need to install Powershell first.
|
|
|
|
|
+
|
|
|
|
|
+**Install Powershell**
|
|
|
|
|
+
|
|
|
|
|
+Open up that terminal, then use `winget` to install `powershell`.
|
|
|
|
|
+
|
|
|
|
|
+---
|
|
|
|
|
+
|
|
|
|
|
+**back to: uh-oh we want to be in a repository but we do we have one?**
|
|
|
|
|
+We launch `powershell` a little differently:
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+Let us initilize the files needed for our website:
|
|
|
```
|
|
```
|
|
|
|
|
+cd Desktop/kyleguy
|
|
|
|
|
+hugo new site web
|
|
|
|
|
+cd web
|
|
|
|
|
+git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
|
|
|
|
|
+echo "theme = 'ananke'" >> hugo.toml
|
|
|
|
|
+hugo server
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
|
|
+If that worked it will look something like this:
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+In addition there will be a webserver on our Windows computer. I think hugo will serve the site `http://localhost:1313/`. This feature is nice and allows us to see our website while we work on it:
|
|
|
|
|
+
|
|
|
|
|
+---
|
|
|
|
|
|
|
|
|
|
+**some final steps**
|
|
|
|
|
+We should probably add our site to the repository. And that website is pretty basic so one should follow the `hugo` tutorials to upgrade the page. All the files are in `Desktop/kyleguy/web` if you've been following closely. Use a terminal for git commands. Maybe edit the `.gitignore` file to include some folders using our deep knowledge of hugo:
|
|
|
|
|
+```
|
|
|
|
|
+# Hugo
|
|
|
|
|
+/web/public/
|
|
|
|
|
+/web/resources/_gen/
|
|
|
|
|
+/web/assets/jsconfig.json
|
|
|
|
|
+/web/hugo_stats.json
|
|
|
|
|
+/web/hugo.exe
|
|
|
|
|
+/web/hugo.darwin
|
|
|
|
|
+/web/hugo.linux
|
|
|
|
|
+/web/.hugo_build.lock
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+Then add our site and commit:
|
|
|
|
|
+```
|
|
|
|
|
+```
|
|
|
|
|
|
|
|
## site setup
|
|
## site setup
|
|
|
You are going to need a domain, either buy one or be a person whom already has a domain. We are going to host our site on `pebbleguy.com` using the `NginX` ("engine x") web server. We will create a site configuration file with SSL using a tool, `certbot-wapper.sh`. This script is part of the [pebbleguy repository](https://git.pebbleguy.com/Dan/pebbleguy.com/src/master/scripts/certbot-wrapper.sh). Login to your account on `pebbleguy.com` using Secure Shell (SSH) or ask Kyle, Chris, Daniel, or Emma for help. If you are one of those people, hello! Download the `pebbleguy.com` repository so you have access to the script and run `certbot-wrapper.sh` to have it create the `NginX` config file for your site:
|
|
You are going to need a domain, either buy one or be a person whom already has a domain. We are going to host our site on `pebbleguy.com` using the `NginX` ("engine x") web server. We will create a site configuration file with SSL using a tool, `certbot-wapper.sh`. This script is part of the [pebbleguy repository](https://git.pebbleguy.com/Dan/pebbleguy.com/src/master/scripts/certbot-wrapper.sh). Login to your account on `pebbleguy.com` using Secure Shell (SSH) or ask Kyle, Chris, Daniel, or Emma for help. If you are one of those people, hello! Download the `pebbleguy.com` repository so you have access to the script and run `certbot-wrapper.sh` to have it create the `NginX` config file for your site:
|