Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Standard Deploy
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Antonio Beamud Montero  
View profile   Translate to Translated (View Original)
 More options 2 Nov, 16:05
From: Antonio Beamud Montero <antonio.bea...@gmail.com>
Date: Mon, 02 Nov 2009 17:05:44 +0100
Local: Mon 2 Nov 2009 16:05
Subject: Standard Deploy
I want to create a RPM package for my pylon app. Exists any document /
proposal about put the pylons tree as a system-wide package, in a
standard way.
For example, my pylon app is a blog, the next tree can be deploy after
install it:

/etc/myblog/myblog.ini
/etc/myblog/myblog.wsgi -> link to apache2/site-enabled for (mod_wsgi)
/usr/lib/python2.6/site-packages/myblog/...
/var/lib/myblog/templates/
/var/lib/myblog/public/
/usr/share/doc/myblog/Documentation
...

or create a "pylons" directory as standard, for example:

/etc/pylons/myblog.ini
/var/lib/pylons/myblog/...
...

It's possible?

Greetings


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Orr  
View profile   Translate to Translated (View Original)
 More options 2 Nov, 19:02
From: Mike Orr <sluggos...@gmail.com>
Date: Mon, 2 Nov 2009 11:02:45 -0800
Local: Mon 2 Nov 2009 19:02
Subject: Re: Standard Deploy
On Mon, Nov 2, 2009 at 8:05 AM, Antonio Beamud Montero

There are no official RPM instructions or directory layout for Pylons.
 In this case, I would avoid over-engineering and scattering files
across multiple directories. If this app will be used only by a few
sysadmins who know Pylons (or will get to know it during the time they
administer the site), just put the entire app in one directory.  The
best choices are /usr/share/myblog or /usr/share/pylons/myblog
following the precedents of:

    PHPMyAdmin: /usr/share/phpmyadmin
    Emacs: /usr/share/emacs/site-lisp
    Vim: /usr/share/vim/{addons,vim72}

PHPMyAdmin puts its configuration files in /etc/phpmyadmin (the Apache
config and the equivalent of production.ini).  The main Apache
configuration simply includes /etc/phpmyadmin/apache.conf.  But Apache
could simply set its DocumentRoot to /usr/share/phpmyadmin and that
would work too.

All documentation should go under /usr/share/doc/[pylons-apps/]myblog
per the Filesystem Hierarchy Standard (http://www.pathname.com/fhs/).
Samples of the configuration files can also go here.

I set up my sites differently than this.  I don't use RPM/DPKG.  I put
applications under /home/wwwadmin/apps (Subversion checkouts) and
virtualenvs under /home/wwwadmin/venv .  Data files go under
/home/wwwadmin/data .  The INI files stay with their applications
(/home/wwwadmin/apps/myblog/production.ini).  The apps all run under
Supervisor using their appropriate virtualenv.  Apache and Supervisor
configurations are kept under /home/wwwadmin/apps/servers/all, and
hand-copied to /etc.  (My rule is that anything executed by root must
be hand-copied from the apps directory to its proper location, while
webapps running as www-data can be run directly from the apps
directory.)

--
Mike Orr <sluggos...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google