Skip to content

Commit 95fdf93

Browse files
committed
create Makefile
We needed to make a makefile such that developers can easily set up their local environments
1 parent f9deeae commit 95fdf93

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Makefile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Makefile for managing Jekyll project for blackpythondevs.github.io
2+
3+
# Set up the environment by pulling the latest Ruby build definitions, installing Ruby 3.3.5,
4+
# as seen in the .ruby-version file, installing required gems and Python packages,
5+
# and configuring pre-commit hooks
6+
7+
setup:
8+
# Pull the latest ruby-build plugin updates
9+
- git -C /root/.rbenv/plugins/ruby-build pull
10+
11+
# Install Ruby version 3.3.5 using rbenv
12+
- rbenv install 3.3.5
13+
14+
# Install the necessary Ruby gems defined in the Gemfile
15+
- bundle install
16+
17+
# Install Python dependencies defined in requirements-dev.txt
18+
- pip install -r requirements-dev.txt
19+
20+
# Set up pre-commit hooks as defined in the configuration file
21+
- pre-commit install
22+
23+
24+
# Start the Jekyll development server
25+
start:
26+
bundle exec jekyll serve
27+
28+
29+
# Start the Jekyll server in detached mode (runs in the background)
30+
start-detach:
31+
bundle exec jekyll serve --detach
32+
33+
34+
# Stop the detached Jekyll server (Kill the background Jekyll process)
35+
stop-detach:
36+
pkill -f jekyll

0 commit comments

Comments
 (0)