P
P
paaaffka2016-10-01 10:45:10
PHP
paaaffka, 2016-10-01 10:45:10

How to create text files on heroku.com?

The bottom line is that I wrote a bot for a telegram, I store several variables in a text file (it’s not rational to use a database) that should be created when the user interacts with the
bot
text files? Perhaps there is a checkmark or the right to open for writing?
Push on the right path!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2016-10-01
@SPAHI4

No
https://elements.heroku.com/addons#data-stores

R
Roman Mirilaczvili, 2016-10-01
@2ord

Heroku guarantees a file's lifetime only within the time limit of a single HTTP request. A database is used to store information.
You can think of files as a Key-Value store. The key can be the name of the file, and the contents of the file can be its value.
Heroku allows you to connect Redis for free with 25 MB of RAM.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question