Coder Social home page Coder Social logo

Comments (4)

franciscod avatar franciscod commented on September 16, 2024

Where is the database stored?

My guess would be that Heroku is probably giving you a fresh "dyno" periodically, which wipes out the files created at runtime.

from telegram-twitter-forwarder-bot.

rijeshkumar avatar rijeshkumar commented on September 16, 2024

I got the reason behind it. In heroku there is dyno recycling. All your dynos will be restarted within 24hours+ 216 random minutes. We can't avoid this recycling also. So is there any way to avoid losing all subscriptions?

from telegram-twitter-forwarder-bot.

franciscod avatar franciscod commented on September 16, 2024

Yes, use a database that won't get recycled.

Heroku provides a few DB services (e.g. PostgreSQL).
peewee (our DB layer) supports PostgreSQL and MySQL as well.

You could also do some kind of network mount to some external server and keep the sqlite DB synced there but that seems to be more trouble than it's worth.

from telegram-twitter-forwarder-bot.

rijeshkumar avatar rijeshkumar commented on September 16, 2024

I created a database in heroku but I don't know how to connect that with bot. Can u help in it?

from telegram-twitter-forwarder-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.