mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 10:21:52 +01:00
22def9b01c
Since355e89ce5
, the frontend references resources via root-relative URLs. This means that `resources` dirs in the language dirs are no longer accessed and can be removed. Achieve this by defining a specific `assets` production config that doesn't include `src/resources`. As offd35c8f4a
, this shrinks the frontend size by 55% (279M -> 124M). Also, the nginx location configs now can be simplified.
10 lines
351 B
Plaintext
10 lines
351 B
Plaintext
# start on reboot
|
|
@reboot sleep 10 ; $HOME/start
|
|
|
|
# daily backup
|
|
37 13 * * * sleep 30 ; /mempool/mempool.space/backup >/dev/null 2>&1 &
|
|
|
|
# hourly liquid asset update
|
|
6 * * * * cd $HOME/liquid/frontend && npm run sync-assets && rsync -av $HOME/liquid/frontend/dist/mempool/browser/resources/assets* $HOME/public_html/liquid/resources/ >/dev/null 2>&1
|
|
|