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.

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