recentpopularlog in

kme : dreamhost   16

Force your site to load securely with an .htaccess file – DreamHost | https://help.dreamhost.com/
<code class="language-apache">
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
</code>
https  apache  redirect  dreamhost  hosting  webmaster  solution 
november 2019 by kme
nodejs setup on Dreamhost VPS
git clone https://github.com/joyent/node.git
1) Make a download dir to store the node source and download it.

mkdir downloads
cd downloads
git clone https://github.com/joyent/node.git
Find the latest version

2) List all of the tags in the repository, and check out the most recent.
git tag
git checkout v0.12


At node v0.12.8-pre, 'npm' v2.13.4 was already present in 'node_modules'; no need to install it separately.
dreamhost  npm  nodejs  sharedhosting  howto  fromsource  solution 
august 2017 by kme
Passenger and Python WSGI – DreamHost [https://help.dreamhost.com/]
Here's a potentially-easier way of activating the virtualenv within your passenger_wsgi.py:

Add the following lines to the top of your .wsgi file:

activate_this = '/path/to/env/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))

For Python 3 add the following lines to the top of your .wsgi file:

activate_this = '/path/to/env/bin/activate_this.py'
with open(activate_this) as file_:
exec(file_.read(), dict(__file__=activate_this))


Courtesy: http://flask.pocoo.org/docs/0.12/deploying/mod_wsgi/#creating-a-wsgi-file
dreamhost  python  wsgi  hosting  webmaster  solution 
august 2017 by kme

Copy this bookmark:





to read