heroku

Failed to replace env in config using Bash & NPM

做~自己de王妃 提交于 2020-01-03 07:33:48
问题 I'm trying to use a private NPM module in my application, and need to set appropriate NPM access tokens so that third-party tools (Heroku and CI) can access, and install the module. I have the following line set in my ~/.bash_profile : export NPM_TOKEN="XXXXX-XXXXX-XXXXX-XXXXX" and then in the /path/to/app/.npmrc I have //registry.npmjs.org/:_authToken=${NPM_TOKEN} However, whenever I open my terminal, I get the following error on startup: Error: Failed to replace env in config: ${NPM_TOKEN}

TypeError: Cannot read property 'attach' of undefined makeStyles.js

本小妞迷上赌 提交于 2020-01-03 07:24:12
问题 First post here and I'm on wits end, any help would be kindly appreciated. When trying to access the Login component of my MERN app on the production version, I get a series of the following type errors shown in this image: My app (https://github.com/ahaq0/kumon_schedule) works perfectly fine locally and was working perfectly fine hosted on heroku earlier today. I tried rolling back all of the changes in the code that I made today to no avail. Similarly, I checked the package.json (and .lock)

Heroku SSL Endpoint - “No Such App”

大憨熊 提交于 2020-01-03 07:17:42
问题 Any ideas why I might be getting the "No Such App" error when I go to my herokussl.com URL (after adding a cert and Heroku SSL endpoint)? I followed the instructions here (https://devcenter.heroku.com/articles/ssl-endpoint), and got a herokussl.com URL. I really don't think it's a DNS issue - as I haven't even gotten to that step. 回答1: It appears you can't access sites directly through the herokussl.com - which kinda makes sense, since they already provide wildcard ssl on herokuapp.com. I've

Accidentally deleted the .git folder

荒凉一梦 提交于 2020-01-03 05:54:08
问题 I was following an instruction on Heroku to try to find out the slug size of my app Your slug size is displayed at the end of a successful compile. You can roughly estimate slug size locally by doing a fresh checkout of your app, deleting the .git directory, and running du -hsc. $ du -hsc | grep total 2.9M total By "fresh checkout of your app", I thought it meant just simply do git checkout -b test. So I did that, then i rm -rf .git to delete the .git folder. and did the du -hsc to get my

heroku errors ImportError: No module named crispy_forms

别说谁变了你拦得住时间么 提交于 2020-01-03 05:28:10
问题 I have a question When I ran this command heroku run python manage.py migrate I got this error: ImportError: No module named crispy_forms But on locally every things are doing well but my app is don't to run on Heroku please help me ? 回答1: you can also do heroku run pip freeze that will give you a list of installed pip apps on heroku.. but ya also check your requirements.txt file 回答2: I had the same issue when running heroku run python manage.py migrate command. Here is what I did and solve

Heroku server error (500) when Debug = False , whitenoise could not find style.css

柔情痞子 提交于 2020-01-03 05:24:08
问题 I am getting a Server Error(500) when debug is set to false, But the site works fine when debug=True This is the Heroku log: [EDIT:NEW LOG FILE AFTER MAKING CHANGES IN DJANGO LOG] 2017-07-30T17:19:06.000000+00:00 app[api]: Build succeeded 2017-07-30T17:19:25.874517+00:00 heroku[web.1]: State changed from up to starting 2017-07-30T17:19:25.873834+00:00 heroku[web.1]: Restarting 2017-07-30T17:19:26.809034+00:00 heroku[web.1]: Stopping all processes with SIGTERM 2017-07-30T17:19:26.828322+00:00

org.postgresql.util.PSQLException: ERROR: syntax error at or near “(”

房东的猫 提交于 2020-01-03 05:20:18
问题 I have craeted a Web Application that can be deployed on Heroku by maven eclipse. Group Id: org.glassfish.jersey.archetypes Artifact Id: jersey-heroku-webapp version: 2.17 I tested the appication on the localhost and POSTMAN and it works fine. I pushed it to heroku to test it on servlet container but I am getting 520 OK 520 it is just a number that I return in the SQLEXCEPTION. IN the Heroku log I found this error: 2015-05-13T13:10:37.364388+00:00 app[web.1]: at java.lang.Thread.run(Thread.j

Heroku can't find my 'settings.py' file

纵饮孤独 提交于 2020-01-03 05:20:10
问题 After deploying my django project on heroku get this in logs: File "/app/django_structure/src/django_structure/wsgi.py", line 16, in <module> 2018-03-23T12:09:10.575053+00:00 app[web.1]: application = get_wsgi_application() 2018-03-23T12:09:10.575056+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application 2018-03-23T12:09:10.575058+00:00 app[web.1]: django.setup(set_prefix=False) 2018-03-23T12:09:10.575061+00:00 app[web.1]

How to create/make your app LOCAL with Heroku/Virtualenv/Django?

此生再无相见时 提交于 2020-01-03 05:07:07
问题 Here's what i've done so far: Installed Git Bash and Heroku, and Foreman. Logged in, created a key, etc... Cloned a demo app from Git. Deployed/Tested it on the browser. It works. I'm working on this directory: */python-getting-started (master)* Which has this stuff: Procfile gettingstarted manage.py runtime.txt README.md **hello ( My app)** requirements.txt Well, by the files are named ( init , manage.py, stuff like that...) i assume Django is hosted on the remote machine (Heroku Machine?)..

Precompiling uploaded assets

微笑、不失礼 提交于 2020-01-03 05:06:16
问题 I have a rails 3.1 application where users upload pictures. I am storing them in /assets/images since that is the path image_tag looks for instead of public/images. Everything works fine in development but I deployed to Heroku and it gives me this error: ActionView::Template::Error (image_name.jpeg isn't precompiled) What is the right way to handle such a situation? Is there a way to compile images after uploading or should I store them somewhere else? 回答1: You must not use the filesystem on