mirror of
https://github.com/chatmail/relay.git
synced 2026-05-13 09:24:43 +00:00
rename script
This commit is contained in:
@@ -53,14 +53,17 @@ All files are generated by the according markdown `.md` file in the `www` direct
|
||||
|
||||
### Refining the web pages
|
||||
|
||||
The `scripts/wwwdev.sh` script supports live development of the web presence:
|
||||
The `scripts/webdev.sh` script supports live development of the chatmail web presence:
|
||||
|
||||
```
|
||||
scripts/wwwdev.sh
|
||||
scripts/init.sh # to locally initialize python virtual environments etc.
|
||||
scripts/webdev.sh
|
||||
```
|
||||
|
||||
this will continously regenerate all markdown files from
|
||||
the `www/build` from the `www/src` directory.
|
||||
the `www/build` from the `www/src` directory, and use
|
||||
the `www/src/page-layout.html` file for producing html documents.
|
||||
|
||||
Moreover, it will start a browser window automatically.
|
||||
|
||||
|
||||
|
||||
@@ -58,10 +58,11 @@ def build_webpages(src_dir, build_dir, config):
|
||||
|
||||
|
||||
def main():
|
||||
chatmail_domain = "example.testrun.org"
|
||||
path = importlib.resources.files(__package__)
|
||||
reporoot = path.joinpath("../../../").resolve()
|
||||
inipath = reporoot.joinpath("chatmail.ini")
|
||||
config = get_ini_settings("example.testrun.org", inipath)
|
||||
config = get_ini_settings(chatmail_domain, inipath)
|
||||
www_path = reporoot.joinpath("www")
|
||||
src_path = www_path.joinpath("src")
|
||||
stats = snapshot_dir_stats(src_path)
|
||||
|
||||
9
scripts/webdev.sh
Executable file
9
scripts/webdev.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo -----------------------------------------
|
||||
echo starting local webdev
|
||||
echo -----------------------------------------
|
||||
|
||||
venv/bin/python3 -m deploy_chatmail.www
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
venv/bin/python3 -m deploy_chatmail.www
|
||||
|
||||
Reference in New Issue
Block a user