File tree 4 files changed +15
-11
lines changed
4 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 1
1
<VirtualHost *>
2
2
3
- WSGIScriptAlias / /Users/shalabhaggarwal /workspace/mydev/flask_catalog_deployment /app.wsgi
3
+ WSGIScriptAlias / /home/ubuntu /workspace/cookbook11/Chapter-11 /app.wsgi
4
4
5
- <Directory /Users/shalabhaggarwal /workspace/mydev/flask_catalog_deployment >
6
- Order allow,deny
5
+ <Directory /home/ubuntu /workspace/cookbook11/Chapter-11 >
6
+ Require all granted
7
7
Allow from all
8
8
</Directory>
9
9
10
- Alias /static/uploads/ "/Users/shalabhaggarwal /workspace/mydev /flask_test_uploads/"
11
- <Directory "/Users/shalabhaggarwal /workspace/mydev /flask_test_uploads">
12
- Order allow,deny
10
+ Alias /static/uploads/ "/home/ubuntu /workspace/cookbook11/Chapter-11 /flask_test_uploads/"
11
+ <Directory "/home/ubuntu /workspace/cookbook11/Chapter-11 /flask_test_uploads">
12
+ Require all granted
13
13
Options Indexes
14
14
Allow from all
15
15
IndexOptions FancyIndexing
Original file line number Diff line number Diff line change 1
- activate_this = '/Users/shalabhaggarwal /workspace/mydev /bin/activate_this.py'
2
- execfile ( activate_this , dict (__file__ = activate_this ))
1
+ activate_this = '/home/ubuntu /workspace/cookbook11 /bin/activate_this.py'
2
+ exec ( open ( activate_this ). read () , dict (__file__ = activate_this ))
3
3
4
4
from my_app import app as application
5
5
import sys , logging
Original file line number Diff line number Diff line change 26
26
app .config ['WTF_CSRF_SECRET_KEY' ] = 'random key for form'
27
27
db = SQLAlchemy (app )
28
28
29
- app .config ['LOG_FILE' ] = 'application.log'
29
+ app .config ['LOG_FILE' ] = '/tmp/ application.log'
30
30
31
31
32
32
if not app .debug :
Original file line number Diff line number Diff line change 16
16
],
17
17
platforms = 'any' ,
18
18
install_requires = [
19
- 'flask ' ,
19
+ 'Flask>=0.10.1 ' ,
20
20
'flask-sqlalchemy' ,
21
- 'flask-wtf'
21
+ 'flask-wtf' ,
22
+ 'flask-babel' ,
23
+ 'sentry-sdk' ,
24
+ 'blinker' ,
25
+ 'geoip2' ,
22
26
],
23
27
include_package_data = True ,
24
28
classifiers = [
You can’t perform that action at this time.
0 commit comments