dreamhost

Ruby on Rails - Can't seem to figure out how to write/modify files on the live site

This works just fine in my dev environment (I am rewriting a css file): File.open(RAILS_ROOT + '\public\stylesheets\colors.css', 'w') do |w| w.puts 'some_text' end But when I run it in my prod environment (on Dreamhost) nothing happens - the file is not modified - nothing. What I need to be able to do is to overwrite an exist...

Cache a Django view with GET parameters on a shared server

I'm developing a Django application on a shared server (Dreamhost). A view that I'm implementing takes several HTTP GET parameters to perform database lookups and return serialized data. Some of these lookups generate several hundreds of kilobytes of data that is expensive to compute. Caching this data would be ideal as it would save bo...

Why can't I set DEBUG=False in my django app on dreamhost without getting an error?

Hi, I have successfully been running my django based page for some time. Now I thought I'd turn of debug mode and implement a nice 404.html file. The problem is that as soon as I change DEBUG to 'False' in my settings.py I immediately get server errors that I don't understand, no matter what page I try to visit. Existing pages or non-ex...

install ffmpeg / ffmpeg-php in dreamhost server

How to install ffmpeg / ffmepg-php in dreamhost server. Please guide me please. ...

insallation of ffmpeg and extensions problem

when I tried to install lamp I am getting this error in "make install" [dometome]$ make install Making install in mpglib make[1]: Entering directory `/home/username/ffmpeg/lame-3.97/mpglib' make[2]: Entering directory `/home/username/ffmpeg/lame-3.97/mpglib' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done ...

Git error: "fatal: .. does not appear to be a git repository" - when deploying via Capistrano

Background: I'm aiming to deploy a rails app and am hosting a remote repository for this app on DreamHost. I am using Git for version control. I have created a local repository, committed and pushed this to the remote repository via ssh. This is roughly the process I took in creating the remote repository. I seem to have created the remo...

Setting up Dreamhost Cron job to simply execute URL

Just when I thought I was understanding cron jobs, I realize I'm still not understanding. I'm trying to set up a cron job through Dreamhost to ping a URL once an hour. This URL when visited performs a small(ish) query and updates the database. A few examples I've tried which haven't seemed to of worked: wget -O /dev/null http://www.do...

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

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_ini...

Unable to create Gitosis remote branches

Hi, When pushing branches to a gitosis hosted repository, although I get the expected response from the push command, the remote branches aren't listed when I do git branch -a. Even after a fetch, the branches still do not show up in the list. Interestingly, I find files with names that correspond to the branches I have been trying to p...

Installing Compass & Sass on Dreamhost

I would like to get going with Compass and Sass on my Dreamhost webspace. Unfortunately it is not part of the provided standard gems so the installation appears to be more complicated. Does anyone have hands on experience with installing and running Compass and Sass on Dreamhost? I'd appreciate any guidance. ...

passenger_wsgi.py on dreamhost to get pylons working

This is what I found that in theory should work from git hub.com passenger-pylons-wsgi-example import os, sys sys.path.append('/home/user/test.sample.com/Helloworld') os.environ['PYTHON_EGG_CACHE'] = '/home/user/tmp' from paste.deploy import loadapp ...

PHPonTrax on Dreamhost

Has anyone had any luck with setting up PHPonTrax on Dreamhost? I have a subdomain ..say subdomain.domain.com where i have a folder called quiz which contains my PHPonTrax app. There are two problems for which I need help. 1. Since PHPonTax gives a public folder with a htaccess file that handles all requests, I want it so that everyti...