-
Get the code from Github clone.
$ git clone https://github.com/zolars/SmartEdu.git
-
You need to install Miniconda and MySQL on your computer.
$ conda -V conda 4.8.1
You need to set "root" as the MySQL password. Or change the password in
config.py
.$ mysql -u root -p Enter password:root Welcome to the MySQL monitor. Commands end with ; or \g.
-
Create the environment.
$ cd SmartEdu $ conda env create -f environment.yml $ conda activate smartedu $ python -V Python 3.6.8 :: Anaconda, Inc.
If you want to update your environment, use:
$ conda env update -f environment.yml
-
Test running flask application.
$ conda activate smartedu $ export FLASK_APP=app $ flask run $ flask recreate-db
-
Deploy the nginx.
$ cp ./config/smartedu.conf /etc/nginx/conf.d/ $ sudo service nginx restart
-
Run the app with gunicorn.
$ conda activate smartedu $ gunicorn -c ./config/gunicorn.conf.py wsgi:app
-
Server Restart.
$ kill -9 <pid> $ conda activate smartedu $ sh deploy.sh
forked from zolars/SmartEdu
-
Notifications
You must be signed in to change notification settings - Fork 0
AntaresFeng/SmartEdu
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 42.6%
- HTML 27.7%
- CSS 15.9%
- Python 13.8%