heroku

Ruby on Rails: Unable to sign out of application in production

不羁岁月 提交于 2020-01-14 02:29:24
问题 I have an application deployed on Heroku. Everything is working fine, except for signing out. When I click the link to sign out I get this error: "The page you were looking for doesn't exist. You may have mistyped the address or the page may have moved. If you are the application owner check the logs for more information." For user authentiation I am using of course the devise gem, I have multiple solutions hovering around Stack Overflow however none of them worked for me. Take a look at the

Why are binary files corrupted when zipping them?

不问归期 提交于 2020-01-13 18:54:34
问题 I have a service that delivers zipped files over the web. The zip contains executable files for the Windows platform. I'm using the RubyZip library to compress the file but the process corrupts the binary. At my local server we're using the zip command via a system call and it works fine. The zip command is not available at Heroku, and I'm simply out of options. I'm using this class: require 'zip/zip' # This is a simple example which uses rubyzip to # recursively generate a zip file from the

GSWD Heroku Django manage.py issue

匆匆过客 提交于 2020-01-13 18:02:06
问题 I worked my way through a great django tutorial online, but am having an issue with the final heroku deployment. Here is the django tutorial: http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/ The issue I have is with the last call to heroku: heroku python manage.py syncdb Here is the error I get: (blog-venv)vagrant@precise64:/vagrant/projects/microblog$ heroku run python manage.py syncdb Running `python manage.py syncdb` attached to terminal... up, run.2530 Traceback

GSWD Heroku Django manage.py issue

牧云@^-^@ 提交于 2020-01-13 18:00:58
问题 I worked my way through a great django tutorial online, but am having an issue with the final heroku deployment. Here is the django tutorial: http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/ The issue I have is with the last call to heroku: heroku python manage.py syncdb Here is the error I get: (blog-venv)vagrant@precise64:/vagrant/projects/microblog$ heroku run python manage.py syncdb Running `python manage.py syncdb` attached to terminal... up, run.2530 Traceback

How can I install Dlib in a Heroku python web app using requirements.txt?

谁说胖子不能爱 提交于 2020-01-13 15:01:49
问题 I built a Python Flask web API that involves machine learning and I've had a lot of frustration deploying it on Heroku. The problem is, my app has a dependency on Dlib ( a library) and I can't seem to find a way to install in my Heroku server. I'm losing my mind trying to fix this and I can imagine other AI developers out there who might encounter this problem. Please help me Here is what I have done so far. I have tried not using a Buildpack by specifying dlib==19.4.0 along with its

Sqlite3 reference deploying simple heroku Rails application

僤鯓⒐⒋嵵緔 提交于 2020-01-13 14:02:01
问题 I've got a problem deploying a very simple example rails app on Heroku. This app uses a db. In local (OSX) with sqlite3 there is no problem, but I can't push to Heroku because some lost reference to sqlite3. I've put on Gemfile the distinction between test, development and production environments: #gem 'sqlite3' group :development, :test do gem 'sqlite3' end group :production do gem 'pg' end and bundle withou problem: bundle install --without production But when i deploy to Heroku: git push

Deploy a Play 2.0.2 application on Heroku

烂漫一生 提交于 2020-01-13 14:00:06
问题 I'm trying to deploy a fresh new application on Heroku. It was made using Play! framework 2.0.2. I followed all the steps of this page: https://github.com/playframework/Play20/wiki/ProductionHeroku But when I deployed it, got the following error > -----> Heroku receiving push -----> Play! app detected -----> WARNING: Play! version not specified in dependencies.yml. Default versio : 1.2.4 being used.... -----> Installing Play! 1.2.4..... -----> done -----> Installing ivysettings.xml..... done

Django project /admin Site matching query does not exist

拈花ヽ惹草 提交于 2020-01-13 13:07:34
问题 I am running a site live on heroku. My issuse occurs when I visit my site's admin located at www.mysite.com/admin. When I visit this page, I get DoesNotExist at /admin/ Site matching query does not exist. Thing is, my project /admin works locally as well as on my staging server. It just so happens when I visit it live, I get that error. After looking around SOF, I tried doing running python manage.py shell with the following commands: from django.contrib.sites.models import Site Site.objects

Nest.JS deploy to Heroku

耗尽温柔 提交于 2020-01-13 11:38:29
问题 I'm currently trying to deploy the basic starter template generated by the Nest.JS CLI (as of version 5.3.0) and seem to be getting a timeout on app startup. I'm wondering if anyone has managed to deploy to Heroku? I'm not sure whether or not I need to include some kind of Procfile? Also, there doesn't seem to be much info around deploying the Nest.JS The Heroku logs when I try to deploy. 2018-10-16T06:52:09.602465+00:00 heroku[web.1]: Starting process with command `npm start` 2018-10-16T06

Celery configure separate connection for producer and consumer

六眼飞鱼酱① 提交于 2020-01-13 10:55:13
问题 We have an application setup on heroku, which uses celery to run background jobs. The celery app uses RabbitMQ as the broker. We used heroku’s RabbitMQ Bigwig add-on as AMQP message broker. This add-on specifies two separate url one optimized for producer and other optimized for consumer. Also, as per RabbitMQ documentation it is recommended to use separate connections for producer and consumer. Celery documentation does not provide a ways to specify connections separately to producer and