Re: how to rename and deploy a pylons app?
I've had to do this before... you'll want to rename the appropriate files / directories , and then replace all the module name instances in your project ie: if your project is named ASDFGHJK , then you'll need to rename: /ASDFGHJK /ASDFGHJK/asdfhjk /ASDFGHJK/asdfhjk.egg-info then do a s/ASDFGHJK/? on the files there are lots of import ASDFGHJK from ASDFGHJK import if you're using a mac, TextWrangler has a great find/replace function that works on directories if you're using subversion for version control, i generaly like to do it like this: 1- rename files 2- commit 3- find/replace text 4- commit if you're using git or mercurial, i think you can do the commits in one step. svn needs them in two though. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
how to rename and deploy a pylons app?
Hi all, I'm new to pylons and python web development. I've started working on an application on my workstation but: 1. would like to know how to rename the app (since I had come up with a random name). i've tried searching for this but nothing comes up 2. how to deploy an app to a production machine. i've gotten as far as just installing python 2.5 and mod_wsgi for apache 2. some of the examples aren't real clear as to some steps i should do next such as how to create the appropriate wsgi file to deploy the app and what not. also, has anyone done any comparisons as to which deployment scenario is the best? proxy pass? mod_wsgi? or fast cgi? Thanks! Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: how to rename and deploy a pylons app?
Hi, You don't rename your project, you name it anything and distribute it (http://wiki.pylonshq.com/display/pylonsdocs/Distributing+Your +Project), or add its absolute path (quick hack!) to your Python distribution/site-packages/easy-install.pth As for production deployment, there have been multiple related lengthy threads in this group. Proxy passing (Nginx) to paster serve is working fine for me. Jerry On Sep 22, 2:52 pm, wellhong [EMAIL PROTECTED] wrote: Hi all, I'm new to pylons and python web development. I've started working on an application on my workstation but: 1. would like to know how to rename the app (since I had come up with a random name). i've tried searching for this but nothing comes up 2. how to deploy an app to a production machine. i've gotten as far as just installing python 2.5 and mod_wsgi for apache 2. some of the examples aren't real clear as to some steps i should do next such as how to create the appropriate wsgi file to deploy the app and what not. also, has anyone done any comparisons as to which deployment scenario is the best? proxy pass? mod_wsgi? or fast cgi? Thanks! Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: how to rename and deploy a pylons app?
On Mon, Sep 22, 2008 at 11:52 AM, wellhong [EMAIL PROTECTED] wrote: I'm new to pylons and python web development. I've started working on an application on my workstation but: 1. would like to know how to rename the app (since I had come up with a random name). i've tried searching for this but nothing comes up 2. how to deploy an app to a production machine. i've gotten as far as just installing python 2.5 and mod_wsgi for apache 2. some of the examples aren't real clear as to some steps i should do next such as how to create the appropriate wsgi file to deploy the app and what not. You can rename the top-level directory, but renaming the package inside is somewhat difficult, as the name is hardwired in egg-info (for the entry point), setup.py, the .ini file, and possibly other places. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: how to rename and deploy a pylons app?
Thank you all so far for the responses. Wyatt, what is the reasoning as to why you'd avoid FCGI? On Sep 22, 2:49 pm, Wyatt Baldwin [EMAIL PROTECTED] wrote: On Sep 22, 11:52 am, wellhong [EMAIL PROTECTED] wrote: Hi all, I'm new to pylons and python web development. I've started working on an application on my workstation but: 1. would like to know how to rename the app (since I had come up with a random name). i've tried searching for this but nothing comes up 2. how to deploy an app to a production machine. i've gotten as far as just installing python 2.5 and mod_wsgi for apache 2. some of the examples aren't real clear as to some steps i should do next such as how to create the appropriate wsgi file to deploy the app and what not. also, has anyone done any comparisons as to which deployment scenario is the best? proxy pass? mod_wsgi? or fast cgi? Thanks! Dave I've never tried mod_wsgi. I can highly recommend Apache/mod_proxy. I would avoid FCGI. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---