Skip to content

Commit

Permalink
Update generate static step
Browse files Browse the repository at this point in the history
Ref: #2
  • Loading branch information
projkov committed Nov 25, 2024
1 parent 186b10b commit 45069bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build-and-release-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up permissions for data directory
run: |
sudo chown -R $USER:$USER data
sudo chmod -R 755 data
- name: Generate static content
run: make generate
- name: Log in to the Container registry
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ remove_data:
rm -rf data/redis

generate:
$(compose) run inferno_web bundle exec rake web:generate
$(compose) -f compose.generate.yml run inferno bundle exec rake web:generate

migrate:
$(compose) run inferno_web /opt/inferno/migrate.sh
Expand Down
10 changes: 10 additions & 0 deletions compose.generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'
services:
inferno:
build:
context: ./
mem_limit: 1500m
restart: unless-stopped
volumes:
- ./resources:/opt/inferno/resources
- ./_site:/opt/inferno/_site

0 comments on commit 45069bb

Please sign in to comment.