Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
Manchangdx committed Mar 8, 2022
1 parent c92798c commit fbbddf2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion jobplus/jobplus/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
{% block body %}{% endblock %}
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<br>
<br>
{% block footer %}
Expand Down
15 changes: 15 additions & 0 deletions jobplus/ready.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 安装依赖库
sudo pip install -r requirements.txt

# 启动 MySQL 服务,创建数据库
sudo service mysql start
mysql -uroot -e 'CREATE SCHEMA jobplus CHARSET = UTF8'

# 设置环境变量
export FLASK_APP=manage.py FLASK_DEBUG=1

# 数据表迁移,创建测试数据
flask db upgrade
python3 -m scripts.generate_data

echo 'ok'
15 changes: 8 additions & 7 deletions jobplus/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
Faker==4.1.1
Flask==0.12.2
flask-login==0.4.1
Flask==1.1.2
flask-login==0.5.0
marshmallow==2.13.6
hiredis==0.2.0
redis==2.10.6
Flask-SQLAlchemy==2.2
Flask-SQLAlchemy==2.5.1
ipython==6.2.0
pylint==1.7.2
pytest==3.2.2
pytest-flask==0.10.0
flask-shell-ipython==0.3.0
flask-migrate==2.1.1
flask-wtf==0.14.2
mysqlclient==1.3.12
flask-shell-ipython==0.4.1
flask-migrate==3.1.0
flask-wtf==1.0.0
mysqlclient==2.1.0
email-validator==1.1.3

0 comments on commit fbbddf2

Please sign in to comment.