diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2021-01-24 01:42:03 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2021-01-24 01:42:03 +0100 |
| commit | e07ab67bf95ea7e65828e373c731b6cdf984a7de (patch) | |
| tree | 4fe471a1a8492149bb0b3e6ec726184e3bcf1647 /Makefile | |
| parent | 36fb49bbef11294a93a53c363d32c2134f6b19b4 (diff) | |
| download | mitjafelicijan.com-e07ab67bf95ea7e65828e373c731b6cdf984a7de.tar.gz | |
Moved to altenator and DO
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
1 files changed, 3 insertions, 22 deletions
| @@ -1,22 +1,3 @@ | |||
| 1 | MAKEFLAGS += -j2 | 1 | deploy: |
| 2 | 2 | alternator --build | |
| 3 | dev: server watch | 3 | cd public && scp -r * root@165.22.87.180:/var/www/html/mitjafelicijan.com/ \ No newline at end of file |
| 4 | |||
| 5 | watch: | ||
| 6 | find content/* templates/* static/* | entr make generate | ||
| 7 | |||
| 8 | server: | ||
| 9 | browser-sync start --server ./public --watch --no-open --no-notify | ||
| 10 | |||
| 11 | clean: | ||
| 12 | rm -rf public/* | ||
| 13 | |||
| 14 | generate: | ||
| 15 | staticgen --generate | ||
| 16 | |||
| 17 | deploy: clean generate copy-weekly-links | ||
| 18 | firebase deploy | ||
| 19 | |||
| 20 | copy-weekly-links: | ||
| 21 | mkdir -p public/weekly-newsletter-archive | ||
| 22 | cp -rf newsletter/generated/* public/weekly-newsletter-archive/ | ||
