heroku

Heroku: App not compatible with buildpack:

佐手、 提交于 2021-02-11 04:58:17
问题 Enumerating objects: 88, done. Counting objects: 100% (88/88), done. Delta compression using up to 8 threads. Compressing objects: 100% (40/40), done. Writing objects: 100% (88/88), 24.46 KiB | 6.12 MiB/s, done. Total 88 (delta 42), reused 88 (delta 42) remote: Compressing source files... done. remote: Building source: remote: remote: -----> App not compatible with buildpack: https://buildpack- registry.s3.amazonaws.com/buildpacks/heroku/python.tgz remote: More info: https://devcenter.heroku

Django: ProgrammingError relation does not exists

痴心易碎 提交于 2021-02-11 04:10:38
问题 To setup new database on heroku I tried python manage migrate and got many exceptions related to relation already exists/does not exists . So I followed the instructions here django 1.9: ProgrammingError: relation "users_user" does not exist but it didn't work. ~ $ django-admin showmigrations admin [ ] 0001_initial [ ] 0002_logentry_remove_auto_add auth [ ] 0001_initial [ ] 0002_alter_permission_name_max_length [ ] 0003_alter_user_email_max_length [ ] 0004_alter_user_username_opts [ ] 0005

Django: ProgrammingError relation does not exists

一曲冷凌霜 提交于 2021-02-11 04:07:55
问题 To setup new database on heroku I tried python manage migrate and got many exceptions related to relation already exists/does not exists . So I followed the instructions here django 1.9: ProgrammingError: relation "users_user" does not exist but it didn't work. ~ $ django-admin showmigrations admin [ ] 0001_initial [ ] 0002_logentry_remove_auto_add auth [ ] 0001_initial [ ] 0002_alter_permission_name_max_length [ ] 0003_alter_user_email_max_length [ ] 0004_alter_user_username_opts [ ] 0005

Heroku build failing on dependency install

雨燕双飞 提交于 2021-02-10 19:51:52
问题 Node Canvas isn't installing on Heroku build, even though it works just fine on my own PC. I'm on nodejs version 12.16.3. I can't find a solution for this anywhere. Canvas is a must, and I've never seen this error before until Heroku. Is this a problem with Heroku or a problem with my package/package-lock files? My Discord is Tom Becker#0590 in case you need it. Here's my build log: -----> Node.js app detected -----> Creating runtime environment NPM_CONFIG_LOGLEVEL=error NODE_ENV=production

My application.js won't work and application.css won't update in Rails

时光毁灭记忆、已成空白 提交于 2021-02-10 17:56:48
问题 I configured my application to work on Heroku, but I'm having a problem. In development mode, when I change a part of the CSS and refresh the browser, my CSS doesn't load. I checked the logs, and the application.css doesn't load. I need it to load every time in development mode. Also, my application.js stopped working and I dont know why. development.rb: # Do not compress assets config.assets.compress = false config.assets.precompile += %w( login.css ) # Expands the lines which load the

My application.js won't work and application.css won't update in Rails

て烟熏妆下的殇ゞ 提交于 2021-02-10 17:56:45
问题 I configured my application to work on Heroku, but I'm having a problem. In development mode, when I change a part of the CSS and refresh the browser, my CSS doesn't load. I checked the logs, and the application.css doesn't load. I need it to load every time in development mode. Also, my application.js stopped working and I dont know why. development.rb: # Do not compress assets config.assets.compress = false config.assets.precompile += %w( login.css ) # Expands the lines which load the

Django app on heroku: content wont appear in mobile browser

无人久伴 提交于 2021-02-10 16:40:50
问题 After deploying my django application on heroku i had a weird experience why the application content is fine and working on desktop browsers however in any mobile devices such as android and ios browsers the content wont display. Is there any setup for mobile browser? 来源: https://stackoverflow.com/questions/45056669/django-app-on-heroku-content-wont-appear-in-mobile-browser

Heroku Python Django App Deployment Failure: No module named 'oauth2_provider'

穿精又带淫゛_ 提交于 2021-02-10 15:56:19
问题 I am following the Django OAuth Toolkit tutorial. I have the app running successfully on my local server with Django OAuth Toolkit installed. When I try to deploy to Heroku I get a "ModuleNotFoundError: No module named 'oauth2_provider'" error while running '$ python manage.py collectstatic --noinput'. I have attempted to search Stack Overflow for similar questions but was unable to find one. I saw many questions on Stack Overflow relating to collectstatic but I do not think that is my

How to use Prisma 2 CLI on Heroku

佐手、 提交于 2021-02-10 14:44:55
问题 I have deployed NestJs application on Heroku which uses Prisma 2, but when I run the command npx prisma --version on heroku bash I get Prisma CLI version: prisma/1.34.10 (linux-x64) node-v14.15.0 but I have installed prisma 2.11.0, I want to use Prisma 2 cli to introspect my existing database, and run prisma generate. 回答1: I managed to introspect my existing database and run prisma generate by adding heroku-postbuild command on my package.json in scripts section as show below: { "scripts": {

How to use Prisma 2 CLI on Heroku

风格不统一 提交于 2021-02-10 14:42:57
问题 I have deployed NestJs application on Heroku which uses Prisma 2, but when I run the command npx prisma --version on heroku bash I get Prisma CLI version: prisma/1.34.10 (linux-x64) node-v14.15.0 but I have installed prisma 2.11.0, I want to use Prisma 2 cli to introspect my existing database, and run prisma generate. 回答1: I managed to introspect my existing database and run prisma generate by adding heroku-postbuild command on my package.json in scripts section as show below: { "scripts": {