Sorry for the noise, Thadeus. I got it working. I used this tutorial: http://www.web2pyslices.com/main/slices/take_slice/1
On Sun, Oct 4, 2009 at 11:23 AM, Alexei Vinidiktov <alexei.vinidik...@gmail.com> wrote: > Thadeus, I've set up my domain to use Passenger, set the web directory > to /home/username/phonetizer.com/public, then I uploaded web2py and > extracted it to the 'public' directory, then I simlinked > wsgihandler.py to wsgi_passenger.py via ln -s wsgihandler.py > wsgi_passenger.py > > but all I see when I go to http://www.phonetizer.com/ in a browser is > a listing of files. > > What am I doing wrong? > > Thanks. > > On Fri, Sep 25, 2009 at 1:47 AM, Thadeus Burgess > <thadeus.burg...@gmail.com> wrote: >> I dont' know what the reason for having a script for dreamhost is... >> >> All I did, was create a new subdomain, with mod_passenger (wsgi). >> >> wget web2py and extract. >> >> simlink wsgihandler.py to wsgi_passenger.py >> >> Boom. web2py ready and running. and if I keep my web2py app under version >> control, all I have to do on dreamhost is "checkout" the changes when I'm >> ready, so no admin insecurity since all development is done on my local >> computer, and changes are pushed over ssh to my mercurial repository. >> >> Now if you reeeallly wanted admin panel, go to >> applications/init/models/access.py and comment out the lines of code that >> redirect if host is 127.0.0.1. >> >> -Thadeus >> >> >> >> >> On Thu, Sep 24, 2009 at 10:31 AM, Jonathan Lundell <jlund...@pobox.com> >> wrote: >>> >>> On Sep 24, 2009, at 8:27 AM, Jonathan Lundell wrote: >>> >>> > >>> > On Sep 24, 2009, at 7:40 AM, pwoolf wrote: >>> > >>> >> Thanks for the suggestion Yarko. Here is the script attached. >>> > >>> > A small correction. I'm doubtful that >>> > >>> > os.system("cd ~/") >>> > >>> > will work as you expect, since it's going to change the directory in a >>> > child process, and not affect the caller's environment (or the >>> > environment of the subsequent child processes). >>> > >>> > Instead, use >>> > >>> > os.chdir(os.path.expanduser("~/")) >>> >>> For similar reasons, this won't work as expected: >>> >>> os.system("source .bash_profile") >>> >>> >>> Also, you're creating .bash, but sourcing .bash_profile. Is that what >>> you intend? Suggestion: bind some of these literal strings to variable >>> names so you don't keep repeating them and taking the chance of making >>> a mistake. >>> >>> >> >> >> >> >> > > > > -- > Alexei Vinidiktov > -- Alexei Vinidiktov --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---