Rebuild assets
This commit is contained in:
0
config/systemd/que.service.erb
Normal file
0
config/systemd/que.service.erb
Normal file
@@ -1 +1 @@
|
||||
{"gallery.js":"gallery-0W09WuML7o_1.js","index.js":"index-0W09WuML7o_1.js","index.css":"index-0W09WuML7o_1.css"}
|
||||
{"gallery.js":"gallery-PU8IS-kM1niJ.js","index.js":"index-PU8IS-kM1niJ.js","index.css":"index-PU8IS-kM1niJ.css"}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
24
script/deploy
Executable file
24
script/deploy
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Building assets:"
|
||||
|
||||
npx tailwindcss -i ./app/assets/index.css -o ./public/assets/index.css
|
||||
|
||||
git add public/assets/index.css
|
||||
git commit -m "Rebuild assets"
|
||||
git push origin main
|
||||
|
||||
echo "Deploying:"
|
||||
|
||||
bundle exec cap production deploy
|
||||
|
||||
echo "Purging cache:"
|
||||
|
||||
curl --request POST \
|
||||
--url https://api.cloudflare.com/client/v4/zones/c32ce0cd2aebb2807e22809e0fb7fa95/purge_cache \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header 'X-Auth-Key: ddd5f7271559811be78fded5bb113546493f6' \
|
||||
--header 'X-Auth-Email: dnitza@gmail.com'\
|
||||
--data '{"purge_everything": true}'
|
||||
|
||||
echo "Done!"
|
Reference in New Issue
Block a user