Add jemoji, remove action, add scripts

This commit is contained in:
cool-mist 2020-12-10 15:29:01 +00:00
parent b3f9f3f3e5
commit 7cc6741381
8 changed files with 67 additions and 71 deletions

View File

@ -1,25 +0,0 @@
name: CI
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout files
- uses: appleboy/ssh-action@master
name: Download files and publish blog
with:
host: ${{ secrets.REMOTE_HOST }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
username: ${{ secrets.REMOTE_USER }}
script: |
cd /home/glados/bbb
git pull
PATH=/home/glados/gems/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:$PATH
publish-blog

View File

@ -4,3 +4,4 @@ gem "jekyll"
gem "jekyll-gist"
gem "jekyll-paginate"
gem "jekyll-seo-tag"
gem "jemoji"

View File

@ -1,32 +1,43 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.1.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.5)
em-websocket (0.5.1)
concurrent-ruby (1.1.7)
em-websocket (0.5.2)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
faraday (0.17.1)
faraday (1.1.0)
multipart-post (>= 1.2, < 3)
ffi (1.11.3)
ruby2_keywords
ffi (1.13.1)
forwardable-extended (2.6.0)
gemoji (3.0.1)
html-pipeline (2.14.0)
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.6.0)
i18n (1.7.0)
i18n (1.8.5)
concurrent-ruby (~> 1.0)
jekyll (4.0.0)
jekyll (4.1.1)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (>= 0.9.5, < 2)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.1)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.3.3)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
@ -34,39 +45,54 @@ GEM
jekyll-gist (1.5.0)
octokit (~> 4.2)
jekyll-paginate (1.1.0)
jekyll-sass-converter (2.0.1)
jekyll-sass-converter (2.1.0)
sassc (> 2.0.1, < 3.0)
jekyll-seo-tag (2.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-seo-tag (2.7.1)
jekyll (>= 3.8, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.1.0)
jemoji (0.12.0)
gemoji (~> 3.0)
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
kramdown (2.3.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.2.1)
listen (3.3.3)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
mercenary (0.4.0)
mini_portile2 (2.4.0)
minitest (5.14.2)
multipart-post (2.1.1)
octokit (4.14.0)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
octokit (4.19.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.1)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
public_suffix (4.0.6)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
rouge (3.14.0)
rexml (3.2.4)
rouge (3.26.0)
ruby2_keywords (0.0.2)
safe_yaml (1.0.5)
sassc (2.2.1)
sassc (2.4.0)
ffi (~> 1.9)
sawyer (0.8.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.6.0)
tzinfo (2.0.3)
concurrent-ruby (~> 1.0)
unicode-display_width (1.7.0)
zeitwerk (2.4.2)
PLATFORMS
ruby
@ -76,6 +102,7 @@ DEPENDENCIES
jekyll-gist
jekyll-paginate
jekyll-seo-tag
jemoji
BUNDLED WITH
2.0.2
2.1.4

View File

@ -15,6 +15,7 @@ author:
# Gems
plugins:
- jekyll-paginate
- jemoji
# Serving
host: bionicbeanie.me

View File

@ -5,11 +5,11 @@ title: Getting Ready
![favicon]({{ site.baseurl | absolute_url }}/public/favicon.png)
After contemplating about different options for hosting, blogging technologies and domain names for a couple of days, I have settled on the following configurations to start blogging! (for now! )
After contemplating about different options for hosting, blogging technologies and domain names for a couple of days, I have settled on the following configurations for now!
### Domain Name
[Bionic Beanie](https://theportalwiki.com/wiki/Bionic_Beanie) is a head wear from [Portal 2](https://en.wikipedia.org/wiki/Portal_2) co-op. Portal series is one of my favourite PC games and **Bionic Beanie Blog** sounded great in my head ([alliteration](https://en.wikipedia.org/wiki/Alliteration) skills bruh!).
[Bionic Beanie](https://theportalwiki.com/wiki/Bionic_Beanie) is a head wear from [Portal 2](https://en.wikipedia.org/wiki/Portal_2) co-op. Portal series is one of my favourite PC games and **Bionic Beanie Blog** sounded great in my head.
Bought it right away from [Go Daddy](https://in.godaddy.com/). The package included DNS hosting as well.
@ -25,28 +25,9 @@ Bought the cheapest VPS from [Vultr](https://www.vultr.com/) for $5 a month - 1G
### Working Setup
The server will run behind an [nginx](https://www.nginx.com/) instance serving static files from `_site` folder that are built as part of jekyll build process. This way, I just have to clone and build the files to publish new changes. I will push the blog site data to a remote git repository to manage the articles.
[LetsEncrypt](https://letsencrypt.org/) helped issuing free ssl cert for my domain.
The below nginx conf concludes the setup of the blog.
```
server {
location / {
root /var/www/html/site; # synlink to _site
}
listen 443 ssl;
ssl_certificate <path to chain.pem>;
ssl_certificate_key <path to private-key.pem>;
}
```
I can make new changes on the repo and push them in.
And publish new changes with `JEKYLL_ENV="production" bundle exec jekyll build` from inside the VPS.
It should be possible to do this with a git hook, but I'm not too worried about it right now.
The server will run behind an [nginx](https://www.nginx.com/) instance serving static files from `_site` folder that are built as part of jekyll build process. Having set the config up [this way](https://gist.github.com/cool-mist/9663a14d0821211b34b7e5f970f6f4e4), I just have to clone and build the files to publish new changes. I will push the blog site data to a remote git repository to manage the articles.
### Logo

2
_scripts/build.sh Executable file
View File

@ -0,0 +1,2 @@
bundle install
JEKYLL_ENV="production" bundle exec jekyll build

9
_scripts/publish-blog Executable file
View File

@ -0,0 +1,9 @@
dir=/home/glados/bbb
echo "Switching to Bionic Beanie Blog at $dir"
cd $dir
echo "Building bbb"
JEKYLL_ENV="production" bundle exec jekyll build
#echo "Restarting Nginx"
#service nginx restart

View File

@ -3,7 +3,7 @@ layout: page
title: About
---
I'm a software developer working in Bangalore. When I'm not working, I might be doing any one of the following activities in addition to blogging.
I'm a software developer working from Bangalore. I primarily work on backend. When I'm not working, I might be doing any one of the following activities in addition to blogging.
* Eat
* Sleep
@ -16,4 +16,4 @@ I'm a software developer working in Bangalore. When I'm not working, I might be
* [Email](mailto:n.suryap@gmail.com)
* [Github](https://github.com/cool-mist)
* [Steam](https://www.dotabuff.com/players/137192269)
* [Steam](https://steamcommunity.com/id/bcgSaitama)