Commit 0b2895a90c

0b2895a90c7751ce06e4b26d4db41005ea2f40a9

parent: 8e4669ecb8

Unsigned

cmc <hello@cleberg.net> · 2025-06-04 00:51 UTC

fix: minor fixes to build script

Layout: unified · split

build.py +6 −6
@@ -30,7 +30,7 @@ def minify_css(src_css, dest_css):
3030 print(result.stderr, file=sys.stderr)
3131 sys.exit(1)
3232
33def run_emacs_publish(dev_mode=False):
33def run_emacs_publish(dev_mode=True):
3434 if dev_mode:
3535 print("Running Emacs publish script (development)...")
3636 result = subprocess.run(
@@ -98,12 +98,12 @@ def main():
9898 print("Environment: Production")
9999 method = prompt("Publishing on remote or LAN? [r|l] ").lower()
100100 if method == "r":
101 ubuntu_server = "ubuntu-remote"
101 homelab_server = "homelab-remote"
102102 elif method == "l":
103 ubuntu_server = "ubuntu"
103 homelab_server = "homelab"
104104 else:
105 print("Invalid input. Assuming LAN (ubuntu)")
106 ubuntu_server = "ubuntu"
105 print("Invalid input. Assuming LAN (homelab)")
106 homelab_server = "homelab"
107107
108108 # Remove previous build
109109 remove_build_directory(build_dir)
@@ -115,7 +115,7 @@ def main():
115115 run_emacs_publish(dev_mode=False)
116116
117117 # Deploy changes
118 deploy_to_server(build_dir, ubuntu_server)
118 deploy_to_server(build_dir, homelab_server)
119119
120120 else:
121121 print("Environment: Development")