web2py_on_dreamhost
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
web2py_on_dreamhost [2017/01/25 09:01] – [Sending Email from Web2Py Using Google G Suite] jtkorb | web2py_on_dreamhost [2019/05/10 07:09] (current) – [Installing Web2Py on DreamHost] jtkorb | ||
---|---|---|---|
Line 12: | Line 12: | ||
$ cd ~ | $ cd ~ | ||
$ virtualenv python | $ virtualenv python | ||
+ | $ source python/ | ||
+ | $ pip install requests | ||
- | * Clone sources from Web2Py github site into web-server directory (using web2py.bikmort.com as an example): | + | * Clone sources from the Web2Py github site((You might prefer to go to github.com and create a fork of the Web2Py sources, then clone your fork. That's what all the cool kids do.)) into web-server directory (using web2py.bikmort.com as an example): |
$ git clone --recursive https:// | $ git clone --recursive https:// | ||
Line 57: | Line 59: | ||
===== Remote Admin Access ===== | ===== Remote Admin Access ===== | ||
+ | |||
+ | These steps allow remote browser access to the Web2Py administrative control panels (both the master panel at '' | ||
* Enable https from the DreamHost [[https:// | * Enable https from the DreamHost [[https:// | ||
Line 62: | Line 66: | ||
* Wait for a few minutes for the certificate to get created and installed. | * Wait for a few minutes for the certificate to get created and installed. | ||
* Restart the web server by touching tmp/ | * Restart the web server by touching tmp/ | ||
+ | * Set an admin password. | ||
+ | |||
+ | $ python web2py.py -p 443 -a " | ||
+ | |||
+ | This command will give errors (for among other reasons, a user process cannot listen on port 443), but it will have generated the necessary '' | ||
+ | | ||
+ | To redirect all accesses to be via https, there are two options: | ||
+ | - Use an .htaccess file to do a redirect as described by DreamHost [[https:// | ||
+ | - Use Web2Py Auth(..., secure=True) setting, but note that this change breaks Travis CI testing. | ||
+ | |||
+ | In either case, there might be cached browser files that break the redirect, for example, redirecting http:// |
web2py_on_dreamhost.1485363718.txt.gz · Last modified: 2017/01/25 09:01 by jtkorb