Tine Van lent's website - tinevanlent.be
-
Install Ruby
sudo apt-get install ruby-full build-essential zlib1g-dev -
Configure Gem location
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc source ~/.bashrc -
Install Jekyll & Bundler
# Check version requirements here https://pages.github.com/versions/ gem install jekyll --version 3.8.5 gem install bundler
Prerequisite homebrew is installed
brew install ruby
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile
gem install --user-install bundler jekyll
echo 'export PATH="$HOME/.gem/ruby/2.7.0/bin:$PATH"' >> ~/.bash_profile
git clone git@github.com:asset-web/tinevanlent.be.git
cd tinevanlent.be/
-
Create new site with default theme
jekyll new . -
Serve development site
bundle exec jekyll serve -
Build production site
JEKYLL_ENV=production jekyll build -
Update dependencies, specific or all gems.
bundle update jekyll bundle update
```bash
docker build . -t tvl-web && docker run --rm tvl-web
# or
docker compose run --rm --entrypoint="" web /src/scripts/cibuild.sh
```
```bash
docker compose run --rm web bundle _2.7.2_ install
```
```bash
docker compose run --rm web bundle update jekyll
```
```bash
docker compose run --rm web bundle update --all
```
```bash
docker compose run --rm web bundle _2.7.2_ install
docker compose run --rm web bundle update --all
docker compose build web
docker compose run --rm web bash /src/scripts/cibuild.sh
```
Update dockerfile and Gemfile. Run the below to rebuild local Docker image and then update the Gemfile dependnecies.
```bash
docker compose run --rm --build web bundle update
```
```bash
docker compose run --rm web bundle lock --normalize-platforms --add-checksums
```
Run the below command and then visit: [http://localhost:4000]
```bash
docker compose up -d
```
Gitflow workflow in use. Previously Travis CI used to build and test. Deploy static Jekyll site to remote server is managed using Digital Ocean integration.