Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Rudra Juice
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import shutil import os

Path where the website folder is prepared

website_folder = '/mnt/data/rudras-juice'

Path for the zip file

zip_file = '/mnt/data/rudras-juice.zip'

Make sure folder exists

if os.path.exists(website_folder): shutil.make_archive(zip_file.replace('.zip',''), 'zip', website_folder) zip_file else: 'Website folder does not exist. Please prepare the website files first.'