heroku

Can I use a file based database on Heroku?

会有一股神秘感。 提交于 2021-01-30 09:09:06
问题 I have a small Node.js / Express app deployed to Heroku. I'd like to use a lightweight database like NeDB to persist some data. Is it possible to periodically backup / copy a file from Heroku if I used this approach? 回答1: File-based databases aren't a good fit for Heroku due to its ephemeral filesystem (bold added): Each dyno gets its own ephemeral filesystem, with a fresh copy of the most recently deployed code. During the dyno’s lifetime its running processes can use the filesystem as a

Can I use a file based database on Heroku?

旧时模样 提交于 2021-01-30 09:06:06
问题 I have a small Node.js / Express app deployed to Heroku. I'd like to use a lightweight database like NeDB to persist some data. Is it possible to periodically backup / copy a file from Heroku if I used this approach? 回答1: File-based databases aren't a good fit for Heroku due to its ephemeral filesystem (bold added): Each dyno gets its own ephemeral filesystem, with a fresh copy of the most recently deployed code. During the dyno’s lifetime its running processes can use the filesystem as a

FileNotFoundError on Heroku after creating that file

戏子无情 提交于 2021-01-29 22:34:18
问题 My app has some additional logging, it works fine on a local machine and even on Heroku local. When I push it to Heroku, it raises a FileNotFoundError . Here is my code: class Logger: def __init__(self, name, file_handler, formatter, stream_handler): if not os.path.exists('Logs'): os.makedirs('Logs') self.logger = logging.getLogger(name) self.logger.setLevel(logging.DEBUG) file_handler.setFormatter(formatter) self.logger.addHandler(file_handler) if stream_handler: stream_handler = logging

FileNotFoundError on Heroku after creating that file

送分小仙女□ 提交于 2021-01-29 22:30:41
问题 My app has some additional logging, it works fine on a local machine and even on Heroku local. When I push it to Heroku, it raises a FileNotFoundError . Here is my code: class Logger: def __init__(self, name, file_handler, formatter, stream_handler): if not os.path.exists('Logs'): os.makedirs('Logs') self.logger = logging.getLogger(name) self.logger.setLevel(logging.DEBUG) file_handler.setFormatter(formatter) self.logger.addHandler(file_handler) if stream_handler: stream_handler = logging

Python - Heroku deployment error boot timeout

假装没事ソ 提交于 2021-01-29 20:55:50
问题 I created a streamlit app in python and I'm trying to deploy it to Heroku following several youtube videos. However, I keep receiving the following errors and I'm not sure how to correct them. 2020-06-20T14:53:35.863016+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2020-06-20T14:53:35.885669+00:00 heroku[web.1]: Stopping process with SIGKILL 2020-06-20T14:53:35.970864+00:00 heroku[web.1]: Process exited with status 137 2020-06

Heroku Discord Bot builds but doesn't work

倾然丶 夕夏残阳落幕 提交于 2021-01-29 20:22:23
问题 I am trying to host a discord bot on Heroku (Discord JDA, Maven). I do this by connecting to Github and then deploying. The bot 'deploys' (view attachment) but doesn't actually work (view attachment). What could I be doing wrong, or has anyone else come across a similar issue? 回答1: Quick and dirty way to deploy it: You'll need to setup a Procfile, extensive info on that right here: https://devcenter.heroku.com/articles/procfile The procfile is basically a file with no extension that tells the

Heroku CLI commands 'pico' not recognized on Windows 10?

ⅰ亾dé卋堺 提交于 2021-01-29 18:20:43
问题 I am using the Heroku CLI in order to edit my MySQL ClearDB Server on it. Whenever I carry out the command heroku config:edit --app myApplication I get an error referencing ‘pico’ command. This is what it is in it’s entirety: Fetching config... done Waiting for pico... 'pico' is not recognized as an internal or external command, operable program or batch file. Error: spawn pico ENOENT at notFoundError (C:/Program Files/heroku/client/node_modules/cross-spawn/lib/enoent.js:6:26) at verifyENOENT

Heroku dyno keeps rebooting constantly

♀尐吖头ヾ 提交于 2021-01-29 17:27:40
问题 I've just deployed a new project to Heroku using Docker. Unfortunately, my dyno is in a reboot cycle and hasn't come online yet. It continuously crashes with the following logs: 2021-01-07T09:49:55.706527+00:00 heroku[web.1]: Process exited with status 143 2021-01-07T09:51:44.917593+00:00 heroku[web.1]: Starting process with command `/bin/sh -c NODE_ENV\=production\ node\ ./dist/apps/server/main.js` 2021-01-07T09:51:45.800006+00:00 heroku[web.1]: State changed from starting to down 2021-01

How to enable TLS for Redis 6 on Sidekiq?

。_饼干妹妹 提交于 2021-01-29 15:44:14
问题 Problem On my Ruby on Rails app, I keep getting the error below for the Heroku Redis Premium 0 add-on: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain) Heroku Redis documentation mentions that I need to enable TLS in my Redis client's configuration in order to connect to a Redis 6 database. To achive this, I have read SSL/TLS Support documentation on redis-rb. My understanding from it is; I need to

Vuetify css not applying in Heroku

人盡茶涼 提交于 2021-01-29 14:59:08
问题 I'm developing a rails app, that uses vue through webpacker. Inside of the vue app I import vuetify and vuetify.css like so: import Vue from 'vue' import Vuetify from 'vuetify' import VueRouter from 'vue-router' import 'vuetify/dist/vuetify.min.css' import App from '../app.vue' import Axios from 'axios' import VueAxios from 'vue-axios' import Vuex from 'vuex' Works fine locally, but when pushed to heroku it no longer works. The app deploys, and it appears like vuetify is included, but the