My ham website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.4 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. [![pipeline status](https://gitlab.com/olson.levi/website/badges/master/pipeline.svg)](https://gitlab.com/olson.levi/website/commits/master) [![coverage report](https://gitlab.com/olson.levi/website/badges/master/coverage.svg)](https://gitlab.com/olson.levi/website/commits/master) [![License: Unlicense](https://img.shields.io/badge/license-Unlicense-brightgreen.svg)](http://unlicense.org/)
  2. # How does this work
  3. _This file is intended to help you remember the thing you made way back then..._
  4. ## Instructions
  5. 1. Create your html file and put it in `/posts`
  6. 2. Then create the meta file for it of the same name but using the ext `.json`. This file should look like:
  7. {
  8. "title": "Something Decent - Levi Olson",
  9. "permalink": "/posts/something-decent",
  10. "created_at": "2018-04-27T17:05:19-06:00",
  11. "created_at_short": "2018-04-27",
  12. "post_title": "the start of something... decent",
  13. "active": "posts",
  14. "content_file": "something-decent.html",
  15. "categories" : ["misc", "programming", "js", "etc..."]
  16. }
  17. 3. Commit, Push and Pull.
  18. ## Pull from Digital Ocean
  19. 1. SSH into server `ssh root@45.55.44.195`
  20. 2. Enter correct dir `cd /home/forge/leviolson-website`
  21. 3. Pull in changes `git pull && npm i`
  22. 4. Restart the service `pm2 restart LeviOlson.com`
  23. 5. Verify it restarted correctly `pm2 logs LeviOlson.com`