Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

spark8899/ops17

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ops17

ops17是运维管理平台,以flask+mysql为框架开发的。

Link

design

db-op

api-op

Init

Install requirements

pip install -r requirements/requirements.txt python manage.py db init

Migrate db

python manage.py db migrate

Create db file

python manage.py db upgrade

init db

python manage.py init_db #add test db

python manage.py shell   

from app import models
Role.insert_roles()
Software.insert_softwares()

clean db

python manage.py drop_db #del all db

Run Server

python manage.py runserver --threaded

Releases

No releases published

Packages

No packages published