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.

34 lines
1.5 KiB

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