# ์ฌ์ฉ๋ฒ
# 1. ๋ฃจ๋น์ค์น
yum install ruby
ruby -v
* ruby update
yum install curl gcc gcc-c++, readline-devel, zlib-devel, libyaml-devel, libffi-devel, openssl-devel, autoconf, automake, libtool, bison
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
curl -L https://get.rvm.io | bash -s stable --ruby
curl -L https://get.rvm.io | bash -s stable --ruby=2.6.10
source /etc/profile.d/rvm.sh
or source /home/azureadmin/.rvm/scripts/rvm
rvm reload
rvm install 2.6.10
rvm reinstall ruby-2.6.10
ruby -v
# rbenv
# rbenv ์ค์น
yum install rbenv ruby-build
# rbenv ์ค์น ํ์ธ
rbenv versions
# ๋ฒ์
rbenv install -l
rbenv install 2.2.4
rbenv global 2.6.10
ruby -v
yum install -y libssl-dev
# 2. ์งํฌ (Jekyll) ์ค์นํ๊ธฐ
gem install jekyll
gem install minima
gem install bundler
gem install jekyll-feed
gem install tzinfo-data
# 3. ๋ก์ปฌ์์ ๋ธ๋ก๊ทธ ์์ฑํ๊ธฐ
jekyll new my-awesome-site
cd my-awesome-site
bundle exec jekyll serve
bundle add webrick
## ๋ธ๋ก๊ทธ ์ ์ฅ ํด๋๋ก ์ด๋ํ๋ค.
## ์ธ์ฝ๋ฉ ์๋ฌ ๋ฐ์์ ๋ค์์ ์ฝ๋๋ฅผ ์คํํ๋ค.
chcp 65001
# ์งํฌ ์คํ
bundle install
jekyll serve
bundle exec jekyll serve --host 0.0.0.0 --port 4000 > /dev/null 2>&1 &
kill $(ps aux | grep '[j]ekyll' | awk '{print $2}')
# ํ
๋ง๋ณ๊ฒฝ
gem install just-the-docs
bundle show just-the-docs
## 1. Gemfile ์ ๋ค์์ ์ถ๊ฐ
gem "just-the-docs"
## 2. _config.yml ํ์ผ์ ๋ค์์ ์ถ๊ฐ
theme: just-the-docs
## 3. ํฐ๋ฏธ๋์์ ๋ค์์ ์คํ
bundle install
# Azure์์ Jekyll์ bat๋ก ์คํํ๊ธฐ
Azure์ Jekyll ์ค์ ์ ์๋ฃํ๊ณ , ์๊ฒฉ์์ ์คํํ๋ ค๋ฉด host๋ฅผ 0.0.0.0๋ก ์ธํ
ํด์ผ ํ์ง๋ง,
Azure์ ๊ฐ์ํ๊ฒฝ์ ๊ฒฝ์ฐ DNS์ฃผ์๋ก host๋ฅผ ์ค์ ํ ์ ์์ ๋, _site๋ DNS์ฃผ์๋ก ์์ฑํ๊ณ
์คํ ์์๋ ์๊ฒฉ์์ ์คํํ๋ ํํ๋กํ๊ณ build๋ฅผ ํ์ง ์๋๋ก ํด์ ์ฒ๋ฆฌํจ
cd C:\DEV\workspace\f5074.github.io
:start cmd /c bundle exec jekyll serve --host f5074.koreacentral.cloudapp.azure.com --port 4000
:timeout /t 10
:bundle exec jekyll serve --skip-initial-build --host 0.0.0.0 --port 4000
cmd /c bundle exec jekyll serve --host f5074.koreacentral.cloudapp.azure.com --port 4000
IF "%ERRORLEVEL%" == "0" goto ERROR
ELSE goto EXEC
:EXEC
bundle exec jekyll serve --skip-initial-build --host 0.0.0.0 --port 4000
:ERROR
echo error
pause
# CentOS ๋ฐฉํ๋ฒฝ
#### ๋ฐฉํ๋ฒฝ ์ํ ํ์ธ
firewall-cmd --state
#### ๋ฐฉํ๋ฒฝ ์ค์น
sudo yum install firewalld
sudo systemctl enable firewalld
sudo systemctl start firewalld
#### ์๋น์ค๋ก ๋ฐฉํ๋ฒฝ ํด์ / ์ ๊ฑฐ
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --permanent --remove-service=http
sudo firewall-cmd --permanent --remove-service=http
#### ํน์ ํฌํธ ๋ฐฉํ๋ฒฝ ํด์
sudo firewall-cmd --permanent --add-port=8080/tcp
sudo firewall-cmd --permanent --remove-port=8080/tcp
#### ๋ฐฉํ๋ฒฝ์ค์ ์ดํ reload ํ์
sudo firewall-cmd --reload
firewall-cmd --list-all
systemctl stop firewalld
systemctl start firewalld
systemctl status firewalld
# jekyll setting on docker
yum install ruby
ruby -v
yum install -y git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel
gem install jekyll
yum install which
curl -L https://get.rvm.io | bash -s stable --ruby
curl -L https://get.rvm.io | bash -s stable --ruby=2.6.10
yum install -y git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel
git clone https://github.com/sstephenson/rbenv.git .rbenvcd
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
exec $SHELL
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
exec $SHELL
yum install which
curl -L https://get.rvm.io | bash -s stable --ruby
curl -L https://get.rvm.io | bash -s stable --ruby=2.6.10
source /etc/profile.d/rvm.sh
rvm install 2.6.10
cd ~
ls -al
git clone https://github.com/sstephenson/rbenv.git .rbenvcd
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
exec $SHELL
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
exec $SHELL
ll
netstat -tnlp
i
bundle exec jekyll serve --skip-initial-build --host 0.0.0.0 --port 8088 > /dev/null 2>&1 &
# reference
https://shryu8902.github.io/_posts/2018-06-22-jekyll-on-windows/
https://min9nim.github.io/2018/07/jekyll-theme/
๋ฐฑ๊ทธ๋ผ์ด๋์คํ: https://taewooblog.tistory.com/152
๋ฐฉํ๋ฒฝํด์ : https://ux.stories.pe.kr/162
โ - intellij - kstudio-edu โ