Skip to content

Commit 9c04600

Browse files
committed
release: bump version to v3
1 parent 1a9d172 commit 9c04600

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ TikzEdt is the inspiration of this project, to create LaTeX TikZ graph in WYSIWY
3737
- Open `http://127.0.0.1:5678` in your browser.
3838
> For Windows users, the server side will automatically change the fontset used by CJK for a larger compatibility.
3939

40+
- If you want to deploy the server in the LAN, use the deployment server in the directory `deploy`, please follow the [LICENSE](LICENSE) for deployment:
41+
- If you are using *nix operating system for deployment, finish the configuration in the previous step, and `pip install gunicorn` to install the additional package. Then run the deployment server directly by:
42+
```bash
43+
cd deploy
44+
python gunicorn-deploy.py
45+
```
46+
- If you are using Windows for deployment or you want to containerize your deployment, you could use the docker virtualization by:
47+
```bash
48+
cd deploy
49+
docker-compose up --build
50+
```
51+
- Then the deployment will be on `[IP]:5678`.
52+
4053
#### Acknowledgements
4154

4255
<a href="https://cn.vuejs.org/" target="_blank"><img class="icon" src="res/poweredby/vue.png" height="16px">Vue.js</a> is the progressive JavaScript framework for this project.

deploy/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ RUN apt-get update
1414
# Install Flask and Gunicorn
1515
RUN apt-get install python3-flask -y
1616
RUN apt-get install python3-gunicorn -y
17-
RUN apt-get install python3-cachetools -y
1817

1918
# Copy the previous directory into the container
2019
COPY . /PGFPlotsEdt

deploy/gunicorn-deploy.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
# Cache LRU size
1111
CACHE_SIZE = 50
1212

13+
# Timeout for each compilation
14+
TIMEOUT = 30
15+
16+
# Limit for the length of the input
17+
LENGTH_LIMIT = 8196
18+
1319

1420
def number_of_workers():
1521
# Should not use full amount of cpu cores,
@@ -81,5 +87,5 @@ def pre_request(worker, req):
8187
'on_starting': on_starting,
8288
'pre_request': pre_request,
8389
}
84-
deployApp = create_app(timeout=30, length_limit=8196)
90+
deployApp = create_app(timeout=TIMEOUT, length_limit=LENGTH_LIMIT)
8591
StandaloneApplication(deployApp, options).run()

js/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,4 +250,4 @@ var animforward = function(){
250250
};
251251

252252
// Version
253-
document.getElementById("version").innerHTML = 'v2';
253+
document.getElementById("version").innerHTML = 'v3';

0 commit comments

Comments
 (0)