dotcloud

How can I minimise connections with django-celery when using CloudAMQP through dotcloud?

别来无恙 提交于 2019-12-22 09:58:18
问题 After spending a few weeks getting django-celery-rabbitmq working on dotcloud I have discovered that dotcloud is no longer supporting rabbitmq. Instead they recommend CloudAMQP. So I've set up CloudAMQP as per the tutorials: http://docs.dotcloud.com/tutorials/python/django-celery/ http://docs.dotcloud.com/tutorials/more/cloudamqp/ http://www.cloudamqp.com/docs-dotcloud.html And the service works fine. However, even when I do not have any processes running, CloudAMQP says there are 3

Error: readv() failed (104: Connection reset by peer) while reading upstream

泪湿孤枕 提交于 2019-12-21 10:51:08
问题 I have facebook apps with flask with nginx and uwsgi. When it receive POST from facebook, it always has error: readv() failed (104: Connection reset by peer) while reading upstream But when I access my apps directly (with GET method), it ran smoothly. What I've done: Limit @app.route with POST method only - doesn't work. Add limit in wsgi: uwsgi_buffer_size (in case request from facebook is big), and uwsgi_harakiri (in case uwsgi provide timeout before finish it request) - doesn't work. I

Error: readv() failed (104: Connection reset by peer) while reading upstream

筅森魡賤 提交于 2019-12-21 10:50:59
问题 I have facebook apps with flask with nginx and uwsgi. When it receive POST from facebook, it always has error: readv() failed (104: Connection reset by peer) while reading upstream But when I access my apps directly (with GET method), it ran smoothly. What I've done: Limit @app.route with POST method only - doesn't work. Add limit in wsgi: uwsgi_buffer_size (in case request from facebook is big), and uwsgi_harakiri (in case uwsgi provide timeout before finish it request) - doesn't work. I

Looking for PaaS providers recommendations [closed]

好久不见. 提交于 2019-12-17 22:09:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I want to develop our new project using a PaaS provider. I'll be developing primary in PHP, but would like that the service can provide other languages too (and add-ons available too, like MongoDB, Memcached, redis, etc). I've seem some PaaS as PHPfog (and AppFog), dotCloud, orchestra.io, Red Hat's OpenShift,

Dotcloud nodejs supervisord.conf not working

爷,独闯天下 提交于 2019-12-13 03:25:33
问题 I've been trying to get my nodejs server process to be monitored by supervisor, however I'm having issues getting supervisord.conf to work. When I deploy, I get the following error: WARNING: The service crashed at startup or is listening to the wrong port. It failed to respond on port "node" (42801) within 30 seconds. Please check the application logs. However when I ssh into the dotcloud server and manually start the nodejs process, it runs just fine, indicating that supervisor is failing to

Serve media files with a static service. Dotcloud

你离开我真会死。 提交于 2019-12-13 01:48:23
问题 I'm trying to serve the media and static files of my django app with a static service on dotcloud (http://stackoverflow.com/questions/13681183/serve-static-files-with-nginx-and-custom-service-dotcloud). I created a static service where I put my static files. In my django settings, I have: STATIC_ROOT = STATIC_DIR STATIC_URL = 'http://mystaticapp.dotcloud.com/' It works perfectly. Concerning my media files, I put a folder media in my static service, and I have: MEDIA_ROOT = 'http://mystaticapp

“Call-time pass-by-reference has been removed”

白昼怎懂夜的黑 提交于 2019-12-12 11:53:12
问题 I'm trying to deploy Wordpress on Dotcloud using this repo but there is an error that appears in the logs: 18:59:19: [www.0] Running postinstall script... 18:59:21: [www.0] PHP Fatal error: Call-time pass-by-reference has been removed in /home/dotcloud/rsync-1353715101184/dotcloud-scripts/feed-wp-config.php on line 86 Looking at line 86 in feed-wp-config.php, it reads: $content = preg_replace('/(define\(\'' . $property . '\', \')(.*)(\'\);)/', '${1}' . $value . '${3}', $content, -1, &$count);

Serve static files with Nginx and custom service. Dotcloud

我怕爱的太早我们不能终老 提交于 2019-12-12 02:18:13
问题 I deployed my Django app on Dotcloud. I'm using websockets with Gevent and django-socketio, so I used a custom service. For now, I'm still using 'runserver_socketio' in order to make it works. Now, I would like to use Nginx to serve my static files. I found this : https://github.com/dotcloud/nginx-on-dotcloud I tried to use it. Here is my dotcloud.yml: www: type: custom buildscript: nginx/builder processes: app: /home/dotcloud/env/bin/python myproject/manage.py runserver_socketio 0.0.0.0:

Solr authentication (using Django Haystack)

寵の児 提交于 2019-12-07 07:08:27
My solr service works without HTTP authentication, but my webhost provides it and I'd like to take advantage of it. I've been given a username and password to access my solr service by dotcloud in the form of a url: 'http://dotcloud:XXXXXXXXXXXXXXXXXXXX@gigsmash-teamfoobar.dotcloud.com/solr/' When I point my browser to this address, it works just fine. In my settings.py file I have the following line: HAYSTACK_SOLR_URL = 'http://dotcloud:XXXXXXXXXXXXXXXXXXX@gigsmash-teamfoobar.dotcloud.com/solr/' but when I run ./manage.py build_solr_schema, I get the following error: ValueError: invalid

How can I minimise connections with django-celery when using CloudAMQP through dotcloud?

假装没事ソ 提交于 2019-12-05 23:59:12
After spending a few weeks getting django-celery-rabbitmq working on dotcloud I have discovered that dotcloud is no longer supporting rabbitmq. Instead they recommend CloudAMQP. So I've set up CloudAMQP as per the tutorials: http://docs.dotcloud.com/tutorials/python/django-celery/ http://docs.dotcloud.com/tutorials/more/cloudamqp/ http://www.cloudamqp.com/docs-dotcloud.html And the service works fine. However, even when I do not have any processes running, CloudAMQP says there are 3 connections. I had a look at their docs and they say ( http://www.cloudamqp.com/docs-python.html ) for celery it