This is the repository for blog.readup.org, a Jekyll blog.
This is probably the easiest, because this project relies on outdated Jekyll, ruby and ruby gem dependencies. This might clash with what's installed on your system already (especially on macOS).
If you have set up the Docker Compose dev environment, run the following to start a live-reloading development server (from this directory):
docker compose -f ../dev-env/docker-compose.yml -p readup up blog -d
You can then access this server via https://blog.dev.readup.org
.
Alternatively, for a Docker setup that does not depend on other repositories, to run a live development server at http://localhost:4000
:
docker run --rm \
--volume="$PWD:/srv/jekyll:Z" \
-p 4000:4000 \
-it jekyll/jekyll:4.1.0 \
jekyll serve
To build the site a single time:
docker run --rm \
--volume="$PWD:/srv/jekyll:Z" \
-it jekyll/jekyll:4.1.0 \
jekyll build
To rebuild the site on each file change, add -w
after jekyll build.
-
- Make sure to add the directory for Ruby gems binaries to your path (the installer should warn you about this with instructions), e.g.
export PATH=$PATH:/Users/thor/.gem/ruby/2.6.0/bin
. - For Thor's recent macOS installation on Big Sur, no additional ruby runtime needed to be installed, but rdoc needed to be installed to avoid an error. This worked:
gem install --user-install rdoc bundler jekyll
- Make sure to add the directory for Ruby gems binaries to your path (the installer should warn you about this with instructions), e.g.
-
Run
bundle install
to install dependencies. -
Run
./run.sh
in your terminal to start a live development server.
- Install the AWS CLI
- If you're here, you likely already received an IAM user account with proper admin permissions. You'll need it.
- Create an access key ID and secret access key, if you haven't already.
- Follow the Quick Setup to configure your CLI. The default region of Readup is
us-east-2
. To use the deployment commands here as-is, you should configure thereallyreadit
profile:aws configure --profile reallyreadit
- Check if you can access the S3 blog bucket with
aws s3 ls s3://blog.readup.org --region us-east-2
Run ./publish.sh
, or ./publish-docker.sh
, depending on your setup.