dreamhost

No such file to load bundler error for Rails 3

坚强是说给别人听的谎言 提交于 2019-11-29 03:08:42
问题 I have a Rails 3 app ready for staging. I haven't got a VPS host set up yet. As I was planning to have everything on shared host for the first few months. Problem: cd myapp bundle check result: The Gemfile's dependencies are satisfied Passenger error: Error message: no such file to load -- bundler Exception class: LoadError Frustrating thing about shared hosts is that I have to add these lines on config.ru: ENV['GEM_HOME'] = '/home/username/.gems' ENV['GEM_PATH'] = '$GEM_HOME:/usr/lib/ruby

How do I install soap extension?

烈酒焚心 提交于 2019-11-28 22:19:30
How do I install Soap? I got this error: Fatal error: Class 'SoapClient' not found in /home/user/mysite.com/path/to/file.php on line 16 I am hosting my site in DreamHost and they don't support any third-party installation. UPDATE: I copied the php.ini file with this script: http://sxi.sabrextreme.com/dh-phpini I am using an API from a website and it says something like this: ####################################################################### ## You need to enable the following extensions in your PHP.ini file ## ## php_openssl.dll ## ## php_soap.dll ## ######################################

Phusion Passenger Error: You have activated rack 1.2.1, but your Gemfile requires rack 1.2.2

人盡茶涼 提交于 2019-11-28 17:38:23
问题 I'm trying to run a Ruby on Rails app on a Dreamhost shared server. All is well so far except one weird bug I have not been able to unravel. Sometimes when I visit the web app, I get presented with a Phusion Passenger error saying, You have already activated rack 1.2.1, but your Gemfile requires rack 1.2.2. Consider using bundle exec. When I just refresh the page it seems to work, though - no more Phusion Passenger error message. Following other stack overflow threads and a similar Dreamhost

Reloading .env variables without restarting server (Laravel 5, shared hosting)

蓝咒 提交于 2019-11-28 17:11:35
问题 My Laravel 5 has run OK until the database was configured, then found this error: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known Doing some research it seems that I configured MySQL access too late, so I should restart the server in order to get the correct environment variables. Well, I'm using Dreamhost's shared server and I just can't do that. How should I fix this issue? Thanks 回答1: If you have run php artisan config:cache on your server,

Get country location of an IP with native PHP

萝らか妹 提交于 2019-11-28 16:50:52
问题 Read on before you say this is a duplicate, it's not. (as far as I could see) I want to get the county code in php from the client. Yes I know you can do this using external sites or with the likes of "geoip_record_by_name" but I don't want to be dependent on an external site, and I can't install "pear" for php as im using shard Dreamhost hosting. I thought I could just do something like this: $output = shell_exec('whois '.$ip.' -H | grep country | awk \'{print $2}\''); echo "<pre>$output<

Update new Django and Python 2.7.* with virtualenv on Dreamhost (with passenger)

折月煮酒 提交于 2019-11-28 03:09:15
Dreamhost is a great host for small project. And it's also Django friendly hosting. Everything good except python and Django version is a little bit out of date. Well it's a whole day of work to figure out how to update Python 2.7.3, Django 1.4 on dreamhost and I really want to share with whoever finding it I currently have private server, a shell account and a bit of luck. So here is what I do: SSH to your host to upgrade python cd ~ mkdir tmp cd tmp wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz tar zxvf Python-2.7.3.tgz cd Python-2.7.3 ./configure --enable-shared --prefix=

Bypassing rack version error using Rails 2.3.5

落爺英雄遲暮 提交于 2019-11-27 21:36:41
I'm currently on Dreamhost attempting to run a Rails 2.3.5 app. Here is the situation, Dreamhost's servers have Rails 2.2.2 installed. Of course, I can't update a shared host's rails version, so I froze my Rails in vendor. Rails 2.3.5 requires the rack v1.0.1 gem. Dreamhost uses the rack v1.0.0 gem. So when I try to define: config.gem "rack", :version => "1.0.1" I get: can't activate rack (~> 1.0.1, runtime) for [], already activated rack-1.0.0 for [] So what I really need to do is bypass my app's request to use 1.0.1, and use Dreamhost's 1.0.0. Does anyone know how to configure this? Is it

How do I install soap extension?

↘锁芯ラ 提交于 2019-11-27 13:24:23
问题 How do I install Soap? I got this error: Fatal error: Class 'SoapClient' not found in /home/user/mysite.com/path/to/file.php on line 16 I am hosting my site in DreamHost and they don't support any third-party installation. UPDATE: I copied the php.ini file with this script: http://sxi.sabrextreme.com/dh-phpini I am using an API from a website and it says something like this: ####################################################################### ## You need to enable the following extensions

Update new Django and Python 2.7.* with virtualenv on Dreamhost (with passenger)

和自甴很熟 提交于 2019-11-27 05:04:22
问题 Dreamhost is a great host for small project. And it's also Django friendly hosting. Everything good except python and Django version is a little bit out of date. Well it's a whole day of work to figure out how to update Python 2.7.3, Django 1.4 on dreamhost and I really want to share with whoever finding it 回答1: I currently have private server, a shell account and a bit of luck. So here is what I do: SSH to your host to upgrade python cd ~ mkdir tmp cd tmp wget http://www.python.org/ftp

Is there a way to limit the amount of memory that “git gc” uses?

柔情痞子 提交于 2019-11-27 03:21:21
I'm hosting a git repo on a shared host. My repo necessarily has a couple of very large files in it, and every time I try to run "git gc" on the repo now, my process gets killed by the shared hosting provider for using too much memory. Is there a way to limit the amount of memory that git gc can consume? My hope would be that it can trade memory usage for speed and just take a little longer to do its work. Yes, have a look at the help page for git config and look at the pack.* options, specifically pack.depth , pack.window , pack.windowMemory and pack.deltaCacheSize . It's not a totally exact