mirror of
https://github.com/JimenezJC/mshj_blog.git
synced 2026-03-07 15:24:37 -05:00
adding make file stuff
This commit is contained in:
parent
b4be1547cf
commit
97763917d8
7 changed files with 37 additions and 13 deletions
2
.env.dev
Normal file
2
.env.dev
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
HUGO_PARAMS_ISSO_URL=http://localhost:8080/
|
||||
HUGO_BASEURL=/
|
||||
2
.env.prod.example
Normal file
2
.env.prod.example
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
HUGO_PARAMS_ISSO_URL=https://comments.example.com/
|
||||
HUGO_BASEURL=https://example.com/
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
isso-dev.db
|
||||
.hugo_build.lock
|
||||
.hugo_build.lock
|
||||
.env.prod
|
||||
19
Makefile
Normal file
19
Makefile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
include .env.dev
|
||||
export
|
||||
|
||||
.PHONY: dev dev-hugo dev-isso prod-build
|
||||
|
||||
# Run hugo dev server + isso in parallel
|
||||
dev:
|
||||
$(MAKE) dev-isso & $(MAKE) dev-hugo; wait
|
||||
|
||||
dev-hugo:
|
||||
hugo server -D --bind 0.0.0.0
|
||||
|
||||
dev-isso:
|
||||
isso -c isso.dev.cfg run
|
||||
|
||||
# Build for production using .env.prod
|
||||
prod-build:
|
||||
@test -f .env.prod || (echo "Error: .env.prod not found. Copy .env.prod.example to .env.prod and fill in your values." && exit 1)
|
||||
export $$(cat .env.prod | xargs) && hugo --minify
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html><script src="/livereload.js?mindelay=10&v=2&port=33989&path=livereload" data-no-instant defer></script><meta name="theme-color" content="#ffffff">
|
||||
<html><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script><meta name="theme-color" content="#ffffff">
|
||||
<link rel="stylesheet" href="https://unpkg.com/terminal.css@0.7.2/dist/terminal.min.css" />
|
||||
<link rel="stylesheet" href="/css/styles.css"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
|
@ -32,15 +32,15 @@
|
|||
<li><strong>blog categories</strong></li>
|
||||
|
||||
<li>
|
||||
<a href="//localhost:33989/categories/games/">games</a>
|
||||
<a href="//localhost:1313/categories/games/">games</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="//localhost:33989/categories/hugo/">hugo</a>
|
||||
<a href="//localhost:1313/categories/hugo/">hugo</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="//localhost:33989/categories/terminal/">terminal</a>
|
||||
<a href="//localhost:1313/categories/terminal/">terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html><script src="/livereload.js?mindelay=10&v=2&port=33989&path=livereload" data-no-instant defer></script><meta name="theme-color" content="#ffffff">
|
||||
<html><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script><meta name="theme-color" content="#ffffff">
|
||||
<link rel="stylesheet" href="https://unpkg.com/terminal.css@0.7.2/dist/terminal.min.css" />
|
||||
<link rel="stylesheet" href="/css/styles.css"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
|
@ -32,15 +32,15 @@
|
|||
<li><strong>blog categories</strong></li>
|
||||
|
||||
<li>
|
||||
<a href="//localhost:33989/categories/games/">games</a>
|
||||
<a href="//localhost:1313/categories/games/">games</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="//localhost:33989/categories/hugo/">hugo</a>
|
||||
<a href="//localhost:1313/categories/hugo/">hugo</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="//localhost:33989/categories/terminal/">terminal</a>
|
||||
<a href="//localhost:1313/categories/terminal/">terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html><script src="/livereload.js?mindelay=10&v=2&port=33989&path=livereload" data-no-instant defer></script><meta name="theme-color" content="#ffffff">
|
||||
<html><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script><meta name="theme-color" content="#ffffff">
|
||||
<link rel="stylesheet" href="https://unpkg.com/terminal.css@0.7.2/dist/terminal.min.css" />
|
||||
<link rel="stylesheet" href="/css/styles.css"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
|
@ -32,15 +32,15 @@
|
|||
<li><strong>blog categories</strong></li>
|
||||
|
||||
<li>
|
||||
<a href="//localhost:33989/categories/games/">games</a>
|
||||
<a href="//localhost:1313/categories/games/">games</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="//localhost:33989/categories/hugo/">hugo</a>
|
||||
<a href="//localhost:1313/categories/hugo/">hugo</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="//localhost:33989/categories/terminal/">terminal</a>
|
||||
<a href="//localhost:1313/categories/terminal/">terminal</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue