On Sat, Oct 17, 2015 at 4:26 PM, HymiR Der Bienenmann <[email protected]>
wrote:

> Hi folks,
>
> i got a simple single-file project working on PA.
>
> But i have no clue how to get working for example the wiki20 project.
>
> *So here my questions:*
> 1. Do i have to install the wiki20 project in order to get it working or
> can i run it
>    directly without installing it (using "pip instal .")
>

Usually you need to install it, but by properly configuring the environment
you can run it anyway.
For example "gearbox serve --relative" is able to run even uninstalled
apps. Just requires proper sys.path configuration.


> 2. What must be set in the configuration of this project and what file?
>

Configuration itself is inside development.ini file

3. What has the wsgi file to look like?
>
> Im using python-3.4, turbogears-2.3.7
> I used gearbox -n -x mywiki to create the project.
>
> I used following Tutorial, but it's too less information on the first hand:
> http://turbogears.readthedocs.org/en/latest/cookbook/deploy/mod_wsgi.html
>
> On the other hand it assumes to configure a "stand-alone application"
> instead - as i understood it - runnig it in embedded-mode as PA needs it.
>

What's a stand-alone application? You mean mod_wsgi daemon mode?
The tutorial prefers daemon mode as that is the safest way to run WSGI
applications, embedded mode shares the python interpreter between them all
and usually causes problems when you have more than on app with different
dependencies on the same server.

I suppose this isn't the case for PythonAnywhere, but that shouldn't change
much to you, as the application server configuration is something
pythonanywhere should take care for you.



> So, does anybody know resources concerning PA and TG or is experienced
> in getting such a full-stack application example running on pythonanywhere?
> Google couldn't help me.
>

Never used PythonAnywhere, but as far as I can see from their documentation
they just require a WSGI file that exposes the application callable. You
should have something like /var/www/something_com_wsgi.py where you can put
your application as described at Point 6 of TurboGears mod_wsgi doc ->
http://turbogears.readthedocs.org/en/latest/cookbook/deploy/mod_wsgi.html

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to