Skip to content

Commit

Permalink
release: bump version to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
LogCreative committed Mar 6, 2024
1 parent 1a9d172 commit 9c04600
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ TikzEdt is the inspiration of this project, to create LaTeX TikZ graph in WYSIWY
- Open `http://127.0.0.1:5678` in your browser.
> For Windows users, the server side will automatically change the fontset used by CJK for a larger compatibility.

- 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:
- 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:
```bash
cd deploy
python gunicorn-deploy.py
```
- If you are using Windows for deployment or you want to containerize your deployment, you could use the docker virtualization by:
```bash
cd deploy
docker-compose up --build
```
- Then the deployment will be on `[IP]:5678`.

#### Acknowledgements

<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.
Expand Down
1 change: 0 additions & 1 deletion deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ RUN apt-get update
# Install Flask and Gunicorn
RUN apt-get install python3-flask -y
RUN apt-get install python3-gunicorn -y
RUN apt-get install python3-cachetools -y

# Copy the previous directory into the container
COPY . /PGFPlotsEdt
Expand Down
8 changes: 7 additions & 1 deletion deploy/gunicorn-deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
# Cache LRU size
CACHE_SIZE = 50

# Timeout for each compilation
TIMEOUT = 30

# Limit for the length of the input
LENGTH_LIMIT = 8196


def number_of_workers():
# Should not use full amount of cpu cores,
Expand Down Expand Up @@ -81,5 +87,5 @@ def pre_request(worker, req):
'on_starting': on_starting,
'pre_request': pre_request,
}
deployApp = create_app(timeout=30, length_limit=8196)
deployApp = create_app(timeout=TIMEOUT, length_limit=LENGTH_LIMIT)
StandaloneApplication(deployApp, options).run()
2 changes: 1 addition & 1 deletion js/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,4 @@ var animforward = function(){
};

// Version
document.getElementById("version").innerHTML = 'v2';
document.getElementById("version").innerHTML = 'v3';

0 comments on commit 9c04600

Please sign in to comment.