Posts

Showing posts with the label heroku

is django compressor default on django install?

is django compressor default on django install? Is django compressor default on django install? I have been having an issue with whitenoise and django. I keep getting this error: ValueError: Missing staticfiles manifest entry for 'inline.bundle.js' ValueError: Missing staticfiles manifest entry for 'inline.bundle.js' now all the research I have done points that it may be a whitenoise (im using heroku) and a issue with django compressor. But I do not remember installing such a tech. Is it by default? One of the work arounds suggested is to replace django compressor with another. But how? whitenoise Actively researching this, if anyone has had this issue before would appreciate a work around. That looks like an Angular issue. And no, django-compressor is not installed by default unless it is installed by a third party library. – Selcuk Jul 2 at 3:38 ...

Getting errors in Rails asset:pipeline with Webpacker and Heroku

Getting errors in Rails asset:pipeline with Webpacker and Heroku I have a Rails 5.1.4 app that I inherited that is deployed to Heroku. It is using webpacker with vuejs and am now having problems deploying to Heroku. I am getting the following message when Heroku run rake assets:precompile: rake assets:precompile: remote: [13] ./app/javascript/production-guarantee-component.vue 193 bytes {0} [built] [failed] [1 error] remote: [14] ./app/javascript/packs/tmp_dashboard.js 2.44 kB {1} [built] remote: + 4 hidden modules remote: ERROR in ./app/javascript/adder-dashboard.vue remote: Module parse failed: Unexpected token (1:0) remote: You may need an appropriate loader to handle this file type. remote: | <template> remote: | <div class="col-md-12"> remote: | <adder-component v-for="category in categories" :category ="category"></adder-component> remote: @ ./app/ja...

Run local code on a Heroku production instance

Run local code on a Heroku production instance Is it possible for me to run something like: RAILS_ENV=production heroku run Item.remove_dupes where the code is local on my machine but it is run on my production Heroku instance? (ie not having pushed code to production via GitHub). 1 Answer 1 You can use Heroku console $ heroku run console Edit Heroku console will automatically run in production mode thx - just to be clear, I'd like to run code that is local (ie not on production and that hasn't been deployed) against my production instance. I am pretty sure running heroku run ... basically sends the command to the heroku server and runs it locally there. I'm doubting what I do can be done. – timpone Aug 30 '16 at 1:01 heroku run ... ...

Unable To Plot Graph From PostgreSQL Query Results In Dash App

Unable To Plot Graph From PostgreSQL Query Results In Dash App I am attempting to write a simple code to simply plot a bar graph of some fruit names in the x-axis vs corresponding sales units. The aim of this code is just to understand how to query postgres results from heroku hosted database through a dash app. Below is the code, from dash import dash import dash_core_components as dcc import dash_html_components as html import plotly.graph_objs as go import psycopg2 import os DATABASE_URL = os.environ['DATABASE_URL'] conn = psycopg2.connect(DATABASE_URL, sslmode='require') cur = conn.cursor() cur.execute("SELECT fruits FROM pgrt_table") fruits1=cur.fetchall() #print(fruits1) cur.execute("SELECT sales FROM pgrt_table") sales1=cur.fetchall() app = dash.Dash() app.layout = html.Div(children=[ html.H1( children='Hello Dash' ), html.Div( children='''Dash: A web application framework for Python.''...