Various documentation fixups
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Armin Ronacher · committed by Armin Ronacher · parent 9074bc4 · Browse files · 3 files·+15 added−13 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+15 added−13 removed
- other:+15 added−13 removed
Provenance
- Commit
a8a98bc- Tree
0ab0f06- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
9074bc4
3 files changed+15 added−13 removed
modified:docs/deploying/fastcgi.rst+13 added-12 removed
52 unmodified lines53 54 Configuring Apache55 ------------------56 57-The example above is good enough for a basic Apache deployment but your `.fcgi`58-file will appear in your application URL e.g.59-example.com/yourapplication.fcgi/news/. There are few ways to configure your60-application so that yourapplication.fcgi does not appear in the URL. A61-preferable way is to use the ScriptAlias and SetHandler configuration directives62-to route requests to the FastCGI server. The following example uses63-FastCgiServer to start 5 instances of the application which will handle all64-incoming requests:57+The example above is good enough for a basic Apache deployment but your58+`.fcgi` file will appear in your application URL e.g.59+example.com/yourapplication.fcgi/news/. There are few ways to configure60+your application so that yourapplication.fcgi does not appear in the URL.61+A preferable way is to use the ScriptAlias and SetHandler configuration62+directives to route requests to the FastCGI server. The following example63+uses FastCgiServer to start 5 instances of the application which will64+handle all incoming requests::65 66 LoadModule fastcgi_module /usr/lib64/httpd/modules/mod_fastcgi.so67 68 FastCgiServer /var/www/html/yourapplication/app.fcgi -idle-timeout 300 -processes 59 unmodified lines78 SetHandler fastcgi-script79 </Location>80 </VirtualHost>81 82-These processes will be managed by Apache. If you're using an standalone FastCGI83-server, you can use the FastCgiExternalServer directive instead. Note that in84-the following the path is not real, it's simply used as an identifier to other85-directives such as AliasMatch:82+These processes will be managed by Apache. If you're using an standalone83+FastCGI server, you can use the FastCgiExternalServer directive instead.84+Note that in the following the path is not real, it's simply used as an85+identifier to other86+directives such as AliasMatch::87 88 FastCgiServer /var/www/html/yourapplication -host 127.0.0.1:300089 90 If you cannot set ScriptAlias, for example on an shared web host, you can use150 unmodified linesmodified:docs/tutorial/dbinit.rst+1 added-1 removed
36 unmodified lines37 hand. Without an application context the :data:`~flask.g` object does not38 know yet to which application it becomes as there could be more than one!39 40 The ``with app.app_context()`` statement establishes the application41-context for us. In the body of the with statement the :flask:`~flask.g`41+context for us. In the body of the with statement the :data:`~flask.g`42 object will be associated with ``app``. At the end of the with statement43 the association is released and all teardown functions are executed. This44 means that our database connection is disconnected after the commit.45 24 unmodified linesmodified:docs/signals.rst+1 added
320 unmodified lines321 322 .. versionadded:: 0.10323 324 .. data:: flask.appcontext_popped325+ :noindex:326 327 This signal is sent when an application context is popped. The sender328 is the application. This usually falls in line with the329 :data:`appcontext_tearing_down` signal.23 unmodified lines