dreamhost

Deploying Django app using passenger

白昼怎懂夜的黑 提交于 2019-12-04 20:05:18
问题 I can get through everything on their wiki - and then I'm lost. http://wiki.dreamhost.com/Django I have a blank Django template, and whenever I try to change anything I get a 500 internal server error. I have completely developed my django app locally and just want to host it online - figured it would be easy but am slowly learning that it is not. I upload my app "videos" to this directory and then put it into the installed apps and ran "python manage.py syncdb", which finds no fixtures

Can't get Flask running using Passenger WSGI on Dreamhost shared hosting

∥☆過路亽.° 提交于 2019-12-04 18:32:21
问题 I'm trying to get a Flask "hello world" application working on a Dreamhost shared server, following the instructions on their wiki, but I'm not having any luck. My Flask application is the "hello world" one from the Flask quickstart guide: from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' if __name__ == '__main__': app.run() Which I've got in a file called "hello.py" in a folder called mysite, as per the DH wiki instructions. My passenger

Rack / Passenger fails on Dreamhost

别说谁变了你拦得住时间么 提交于 2019-12-04 16:04:22
I am new to Rails & Ruby and have been following the http://ruby.railstutorial.org/ruby-on-rails-tutorial-book and amy trying to deploy the demo app to my Dreamhost passenger enabled host and when I try to run the app if fails with: Ruby (Rack) application could not be started and the following backtrace (formatting the best I can): # File Line Location 0 /usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/setup.rb 10 in `exit' 1 /usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/setup.rb 10 2 /usr/lib/ruby/1.8/rubygems/custom_require.rb 36 in `gem_original_require' 3 /usr/lib/ruby/1.8

Rack Error with DreamHost, Passenger, and Rails 3.0.0.rc

梦想的初衷 提交于 2019-12-04 09:49:58
Background: I have viewed this question as well as this one - sadly, to no avail. Error Message (Passenger): You have already activated rack 1.1.0, but your Gemfile requires rack 1.2.1. Consider using bundle exec. my Gemfile: source 'http://rubygems.org' gem 'rails', '3.0.0.rc' gem 'nifty-generators' gem 'nokogiri' group :after_initialize do gem 'feedzirra' end my Gemfile.lock has this line: rack (1.2.1) my environment.rb has this line at the top: ENV['GEM_PATH'] = File.expand_path('~/.gems') + ':/usr/lib/ruby/gems/1.8' my boot.rb has this line at the top: Gem.clear_paths I have rack (1.2.1)

How do I enable gzip on Dreamhost?

不打扰是莪最后的温柔 提交于 2019-12-04 09:39:55
问题 I would like to compress all css and js on my Dreamhost site, I have found suggestions on the web but none of them work. Does anyone have a working example of gzip running on a Dreamhost site? 回答1: This thread on the Dreamhost support forum looks like it has the info you want. 回答2: I'm a bit late to the game here in 2012, but I think this is still relevant. The "mod_gzip" method does not work in Dreamhost's .htaccess files any more. They seem to be using mod_deflate instead. I removed the mod

Rails 3 on dreamhost?

☆樱花仙子☆ 提交于 2019-12-04 07:53:43
问题 I'd like to deploy a small Rails 3 app on dreamhost (just for testing purposes, nothing serious) and I am wondering if anyone has done it already... Please choose one of the following: I did it and it's super easy, here's how: ... Though I didn't try it, it should be easy, here's how: ... It's quite complicated, but this should get you started: .... NO WAI!!!1!one!1 Set it up on slicehost or another non-shared hosting or you'll die a painful death trying to force it on DH Thoughts? 回答1:

SSH key on dreamhost

淺唱寂寞╮ 提交于 2019-12-04 05:55:20
I am trying to setup an SSH key pairing with dreamhost and my local machine. I'm using git bash as my terminal (which uses mingw32) I can ssh myusername@mysharedserver.com and I'm asked for my password. I have already created RSA keys on both my local and the shared dreamhost server. Here are the steps I take on my git terminal: $ scp ~/.ssh/id_rsa.pub myusername@mysharedserver.com:~/ $ ssh myusername@mysharedserver.com myusername@mysharedserver.com's password: ***** $ (ls shows my local's id_rsa.pub in the ~ directory) $ cd ~/.ssh $ ls id_rsa id_rsa.pub key_backup $ cat ./id_rsa.pub >>

SVN frequently says file is locked by me in another working copy

十年热恋 提交于 2019-12-04 00:11:26
I have an SVN repository (hosted on Dreamhost) with needs-lock set on binary files. It sometimes happen that, while committing files locked and modified by me, the commit fails with the error: Error: Commit failed (details follow): Error: File '/my/file.bin' is locked in Error: another working copy If I try to get the lock on that file (without stealing it) it says: Error: Path '/my/file.bin' is already locked by user Error: 'my_username' in filesystem '/home/user1/svn/repo1/db' Cleanup doesn't help, so the only way to solve this is to steal the lock, and then the commit succeedes. This is not

Can't get Flask running using Passenger WSGI on Dreamhost shared hosting

南笙酒味 提交于 2019-12-03 12:49:00
I'm trying to get a Flask "hello world" application working on a Dreamhost shared server, following the instructions on their wiki , but I'm not having any luck. My Flask application is the "hello world" one from the Flask quickstart guide : from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' if __name__ == '__main__': app.run() Which I've got in a file called "hello.py" in a folder called mysite, as per the DH wiki instructions. My passenger_wsgi.py file is: import sys, os INTERP = os.path.join(os.environ['HOME'], 'flask_env', 'bin', 'python'

Deploying Django app using passenger

主宰稳场 提交于 2019-12-03 12:46:36
I can get through everything on their wiki - and then I'm lost. http://wiki.dreamhost.com/Django I have a blank Django template, and whenever I try to change anything I get a 500 internal server error. I have completely developed my django app locally and just want to host it online - figured it would be easy but am slowly learning that it is not. I upload my app "videos" to this directory and then put it into the installed apps and ran "python manage.py syncdb", which finds no fixtures (which I Found odd). From there, it just gets an internal server error. Here is the error I am getting: http