-
Notifications
You must be signed in to change notification settings - Fork 63
Create Makefile #534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Makefile #534
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Makefile for managing Jekyll project for blackpythondevs.github.io | ||
|
||
# Set up the environment by pulling the latest Ruby build definitions, installing Ruby 3.3.5, | ||
# as seen in the .ruby-version file, installing required gems and Python packages, | ||
# and configuring pre-commit hooks | ||
|
||
setup: | ||
# Pull the latest ruby-build plugin updates | ||
- git -C /root/.rbenv/plugins/ruby-build pull | ||
|
||
# Install Ruby version 3.3.5 using rbenv | ||
- rbenv install 3.3.5 | ||
|
||
# Install the necessary Ruby gems defined in the Gemfile | ||
- bundle install | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What version of Python should be installed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Python 3.11.7 will be installed, i have modified the file to reflect this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kjaymiller Kindly review the PR again as she has made the changes requested. |
||
# Install Python dependencies defined in requirements-dev.txt | ||
- pip install -r requirements-dev.txt | ||
|
||
# Set up pre-commit hooks as defined in the configuration file | ||
- pre-commit install | ||
|
||
|
||
# Start the Jekyll development server | ||
start: | ||
bundle exec jekyll serve | ||
|
||
|
||
# Start the Jekyll server in detached mode (runs in the background) | ||
start-detach: | ||
bundle exec jekyll serve --detach | ||
|
||
|
||
# Stop the detached Jekyll server (Kill the background Jekyll process) | ||
stop-detach: | ||
pkill -f jekyll |
Uh oh!
There was an error while loading. Please reload this page.