webfaction

Trying to deploy a Rails 4 app to WebFaction, using their documentation and getting an error locally

守給你的承諾、 提交于 2019-12-12 01:43:48
问题 I am trying to deploy a Rails 4 app via github to Webfaction via Capistrano 2.15.5. Initially I installed Capistrano 3 and was getting errors, so I ended up installing Capistrano 2.15.5 and following webfaction's documentation here: I spoke with webfaction, and they suggested I try the older Cap 2 version since that's what they're familiar with and wouldn't be updating their documentation for Capistrano 3 for awhile. I get through all the appropriate steps in their tutorial, and I get a bunch

Static files not being served from seperate django staticfile application

佐手、 提交于 2019-12-12 01:08:18
问题 I'm using webfaction to make a simple static website. I think I have done everything correctly, but still my static files (i.e css, images) are not being served. I used this guide to set things up: http://docs.webfaction.com/software/django/getting-started.html I did everything they told me to, so in brief: 1) made a separate static media application 2) updated settings.py 3) ran python manage.py collectstatic All of the above went pretty much according to plan and I can now see my static

Safari xhr drag'n'drop file upload seems to occur twice

十年热恋 提交于 2019-12-10 02:42:02
问题 It can be related to Webfaction configuration (they have nginx proxy, and my app is webpy running under apache2+mod_wsgi) because it works in my dev cherrypy server. Here are some bits from javascript code I use for upload: /* Bind drop events */ $(this).bind({ "dragover": function(e){ var dt = e.originalEvent.dataTransfer; if(!dt) return; if($.browser.webkit) dt.dropEffect = 'copy'; $(this).addClass("active"); return false; }, "dragleave": function(e){ $(this).removeClass("active") },

Deploying Django Project on Webfaction

萝らか妹 提交于 2019-12-08 14:07:06
问题 I'm quite a newbie in Django, and web dev in general. I've been following tutorials and guides in making a Django project locally. Now, I want to deploy my project to WebFaction. I followed all of their instructions found here: https://docs.webfaction.com/software/django/getting-started.html However, after doing all of these, when I go to the domain, it simply says: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.

Sending CSV file with SFTP in swift

不想你离开。 提交于 2019-12-08 12:50:45
问题 I have a server hosted with webfaction that I would like to be able to send a csv file to from my app with FTP or SFTP. I have found many libraries that should help like ConnectionKit, NMSSH, DLSFPT, and LxFTPRequest. However, all of them are in objective-c and not swift which makes them hard to read, understand, and implement in Swift 4. I have tried to implement LXFTPRequest since I found a swift implementation for the upload and here is my code: let fileName = "user-data.csv" guard let

How do I add directories to PATH?

£可爱£侵袭症+ 提交于 2019-12-08 05:20:39
问题 Long story made short, I am trying to issue myself an SSL certificate using LetsEncrypt, and have recently installed rbenv to make this process easier. After installing rbenv, I check to see if everything checks out using curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash I than get this message saying that there are no versions of ruby installed. After trying to install ruby using the command "rbenv install 2.3.1" I get this error rbenv: no such command

template not found, deploying Pyramid on Webfaction

安稳与你 提交于 2019-12-08 01:06:24
问题 I'm trying to deploy my webapp to Webfaction, the basic example is working correctly, I got a TemplateNotFound in a template that extends a basic template using Jinja2. Here is my project tree: /webapps /myapp development.ini production.ini /bin /theapp /Project setup.py /project __init__.py views.py /templates base.jinja2 home.jinja2 /static _ init _.py config.include('pyramid_jinja2') config.add_jinja2_search_path("templates") home.jinja2 {% extends "templates/base.jinja2" %} To be more

supervisord always returns exit status 127 at WebFaction

拈花ヽ惹草 提交于 2019-12-07 09:37:35
问题 I keep getting the following errors from supervisord at webFaction when tailing the log: INFO exited: my_app (exit status 127; not expected) INFO gave up: my_app entered FATAL state, too many start retries too quickly Here's my supervisord.conf: [unix_http_server] file=/home/btaylordesign/tmp/supervisord.sock [rpcinterface:supervisor] supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface [supervisorctl] serverurl=unix:///home/btaylordesign/tmp/supervisord.sock

template not found, deploying Pyramid on Webfaction

不打扰是莪最后的温柔 提交于 2019-12-06 07:35:14
I'm trying to deploy my webapp to Webfaction, the basic example is working correctly, I got a TemplateNotFound in a template that extends a basic template using Jinja2. Here is my project tree: /webapps /myapp development.ini production.ini /bin /theapp /Project setup.py /project __init__.py views.py /templates base.jinja2 home.jinja2 /static _ init _.py config.include('pyramid_jinja2') config.add_jinja2_search_path("templates") home.jinja2 {% extends "templates/base.jinja2" %} To be more clear, the project works locally I know it's something with the template path, I'm not sure how to set it,

supervisord always returns exit status 127 at WebFaction

半城伤御伤魂 提交于 2019-12-05 14:54:59
I keep getting the following errors from supervisord at webFaction when tailing the log: INFO exited: my_app (exit status 127; not expected) INFO gave up: my_app entered FATAL state, too many start retries too quickly Here's my supervisord.conf: [unix_http_server] file=/home/btaylordesign/tmp/supervisord.sock [rpcinterface:supervisor] supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface [supervisorctl] serverurl=unix:///home/btaylordesign/tmp/supervisord.sock [supervisord] logfile=/home/btaylordesign/tmp/supervisord.log logfile_maxbytes=50MB logfile_backups=5 loglevel