Saturday, 15 June 2013

cgi - Running a python script on my hosting -



cgi - Running a python script on my hosting -

i newbie web development , python. since dont have vocabulary inquire exact question, here summary of need do:

i have little test python cgi script, have uploaded /home/username/pyscripts above /home/username/domain.com

i need link can type in url bar, lead script beingness executed , content displayed in browser.

can tell me if need create html file, , if yes how point python script domain folder has wordpress installed. hosting dreamhost shared hosting

the script there below:

#! /usr/bin/python print 'content-type: text/html' print '' print 'hello, world!

heroku place host , python scripts.

pre-req

pythonscripts.py procfile requirements.txt

and after add, commit , force scripts heroku app. run next command on terminal run scripts.

heroku run python your_scripts.py

more if want run scripts on schedule timing. heroku provides lots of adds-on. search on heroku

python cgi dreamhost

No comments:

Post a Comment