-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (44 loc) · 1.53 KB
/
Makefile
File metadata and controls
54 lines (44 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Docker Development Commands
.PHONY: build dev prod down rebuild clean install serve format
# Build Docker development environment
build:
docker compose -f docker/docker-compose.yml build
# Start development server with live reload
dev:
docker compose -f docker/docker-compose.yml up --watch
# Build and start production server
prod:
docker compose -f docker/docker-compose-prod.yml build
docker compose -f docker/docker-compose-prod.yml up
# Stop Docker containers
down:
docker compose -f docker/docker-compose.yml down
# Restart Docker without cache - thorough cleanup
restart:
docker compose -f docker/docker-compose.yml down
docker volume rm -f seacrowd-website_jekyll_cache || true
docker volume rm -f docker_jekyll_cache || true
rm -rf .jekyll-cache/ _site/ .sass-cache/
docker compose -f docker/docker-compose.yml up --watch
# Rebuild Docker containers (no cache)
rebuild:
docker compose -f docker/docker-compose.yml down -v
docker compose -f docker/docker-compose.yml build --no-cache
docker compose -f docker/docker-compose.yml up --watch
# Clean Jekyll caches and site
clean:
rm -rf .jekyll-cache/ _site/
# Manual Ruby setup commands
# Requires rbenv: https://github.com/rbenv/rbenv
# brew install rbenv
# echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
# echo 'eval "$(rbenv init -)"' >> ~/.zshrc && source ~/.zshrc
# rbenv install
install:
bundle install
# Serve site manually with Ruby
serve:
bundle exec jekyll serve --config _config.yml,_config_dev.yml --watch
# Format code (requires npm)
format:
npm run format