heroku

django makemigrations and migrate on heroku server don't create tables

淺唱寂寞╮ 提交于 2020-01-29 05:17:06
问题 Python Version 2.7 Django Version 1.9.7 I have created a Django app on heroku. I can't get the heroku server to migrate properly. In the past I have done all the makemigrations locally and then pushed them to the server. It has worked in the past. Now I thought I would choose to do the migrations all on the server side, since I am not running this app locally at all. I just created one new model inside the models.py for app 'main': from __future__ import unicode_literals from django.db import

How to configure a Laravel application to use heroku PostgreSQL hobby dev?

╄→尐↘猪︶ㄣ 提交于 2020-01-25 21:41:27
问题 I am currently working on a Laravel project. The default database connection points to the mySQL driver. How to change the driver to Postgres and use the credentials provided by heroku? 回答1: First, add the below code on top of the database configuration file. $host = env('DB_HOST', '127.0.0.1'); $database = env('DB_DATABASE', ''); $username = env('DB_USERNAME', 'forge'); $password = env('DB_PASSWORD', 'forge'); if($databaseUrl = getenv('DATABASE_URL')) { $url = parse_url($databaseUrl); $host

How to configure a Laravel application to use heroku PostgreSQL hobby dev?

自闭症网瘾萝莉.ら 提交于 2020-01-25 21:41:12
问题 I am currently working on a Laravel project. The default database connection points to the mySQL driver. How to change the driver to Postgres and use the credentials provided by heroku? 回答1: First, add the below code on top of the database configuration file. $host = env('DB_HOST', '127.0.0.1'); $database = env('DB_DATABASE', ''); $username = env('DB_USERNAME', 'forge'); $password = env('DB_PASSWORD', 'forge'); if($databaseUrl = getenv('DATABASE_URL')) { $url = parse_url($databaseUrl); $host

Error deploying on Heroku (ReportLab)

有些话、适合烂在心里 提交于 2020-01-25 14:20:50
问题 I want to deploy a python / django application on Heroku. In the local environment everything works fine. I use pip to install packages. My requirements.txt is the following: Django==1.6.2 Pillow==2.4.0 dj-database-url==0.3.0 dj-static==0.0.5 django-ckeditor-updated==4.2.8 django-toolbelt==0.0.1 gunicorn==18.0 html5lib==1.0b3 mongoengine==0.8.7 psycopg2==2.5.2 pyPdf==1.13 pymongo==2.7 pystache==0.5.3 reportlab==3.1.8 six==1.6.1 static==1.0.2 wsgiref==0.1.2 xhtml2pdf==0.0.5 But when deploying

twitter response: “error 32: Could not authenticate you” from Heroku, but not desktop

大憨熊 提交于 2020-01-25 10:38:05
问题 I'm following the instructions from Carin Meier's How I Start post and having an issue with posting to twitter (like her example) from Heroku. Note that my app does not have a web component, just a worker component. Testing on my desktop, I'm able to post to twitter and gist.github.com. But, on Heroku, I always get Exception in thread "main" java.lang.Exception: Twitter responded to request with error 32: Could not authenticate you. I am able to post to gist.github.com, so it appears to be a

heroku deployment error npm ERR! code ELIFECYCLE errno1

送分小仙女□ 提交于 2020-01-25 10:14:28
问题 I'm working on my deployment to Heroku, and I keep failing after the Heroku Post Build Script during the building. Here is the error: Counting objects: 31, done. Delta compression using up to 8 threads. Compressing objects: 33% (10/30) Compressing objects: 36% (11/30) Comp(13/30) Compressing objects: 46% (14/30) Compressing objects: 50% (15/cts: 56% (17/30) Compressing objects: 60% (18/30) Compressing objects:ssing objects: 70% (21/30) Compressing objects: 73% (22/30) Compressin) Compressing

heroku deployment error npm ERR! code ELIFECYCLE errno1

元气小坏坏 提交于 2020-01-25 10:14:17
问题 I'm working on my deployment to Heroku, and I keep failing after the Heroku Post Build Script during the building. Here is the error: Counting objects: 31, done. Delta compression using up to 8 threads. Compressing objects: 33% (10/30) Compressing objects: 36% (11/30) Comp(13/30) Compressing objects: 46% (14/30) Compressing objects: 50% (15/cts: 56% (17/30) Compressing objects: 60% (18/30) Compressing objects:ssing objects: 70% (21/30) Compressing objects: 73% (22/30) Compressin) Compressing

How do I rewrite all urls to index.html in Heroku?

℡╲_俬逩灬. 提交于 2020-01-25 09:17:45
问题 My Heroku app is using React with React Router. I use Switch to navigate through different components, so the URL changes as well (e.g. /room/4141 ). However, if I reload the page, it doesn't act like if it was a React app, but instead it searches for the mentioned .html file. I used this Buildpack: https://github.com/mars/create-react-app-buildpack.git but it seems to do nothing in regards with pages being rewritten to index.html . Is there a way to prevent this behaviour and rewrite all

unable to deploy to heroku since jhipster update

让人想犯罪 __ 提交于 2020-01-25 07:37:10
问题 I upgrade my project from jhipster 5.8.2 to 6.5.1. All works fine in develop mode, on my Windows computer Now, I try to deploy on my Test heroku platform, but I have an exception : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name

Javascript in a fresh Rails 5.2.1 app on Heroku doesn't work properly

与世无争的帅哥 提交于 2020-01-25 05:45:05
问题 I think there is a big problem with JavaScript files in Rails 5 apps in Production environment on Heroku. It works locally though My configuration: Windows: 10 Education Rails: 5.2.1 Ruby: 2.4.4p296 Heroku: heroku/7.7.7 win32-x64 node-v10.7.0 postgres: postgres (PostgreSQL) 10.3 I will now present you the steps I made to confirm that it doesnt work and you can try for your self. In the end you will have a link to the bitbucket repo and the app on Heroku. Step 1: Creating a new Rails 5 App and