校园智障英语
Via Docker
From Docker Hub
docker pull wangxinhe/xyzzyy
From GitHub Packages
docker pull docker.pkg.github.com/wxh06/xyzzyy/xyzzyy:latest
From source
- Clone via Git
git clone https://github.com/wxh06/xyzzyy.git
pip install -r requirements.txt
npm i
export FLASK_APP=app.py
python -m flask run
Then head over to http://127.0.0.1:5000/.
WSGIScriptAlias / /path/to/xyzzyy/wsgi.py
If you've already pulled the Docker image, try
docker run -d -p 8080:80 -t wangxinhe/xyzzyy
Then you'll get:
$ curl -I 127.0.0.1:8080/
HTTP/1.1 200 OK
Date: ...
Server: Apache/2.4 (Unix)
Content-Length: ...
Last-Modified: ...
Cache-Control: public, max-age=43200
Expires: ...
ETag: "..."
Content-Type: text/html; charset=utf-8