I want to do indexing of the mega shared folder in Heroku
[ it is the same as indexing of the google drive folder in Heroku App ]
Is there any way to do that?
Tips:
I think rclone can do that
here is the GitHub link
https://github.com/developeranaz/Mega-index-heroku
this GitHub requires login credentials of mega cloud to get indexed for single account in Heroku
I want
Either multiple account indexing to Heroku should be there
Or multiple shared folder indexing to Heroku should be there
[ Any of the one solutions will be best ]
Related
I created a Next.js project that is deployed on Vercel and uses a MySQL database. I then deployed a Directus instance on Heroku that is tied to that same database. In my Next.js project I want to fetch and render images that I uploaded to Directus. At first this works, but after a while all the images disappear in the Directus media library. The folders and references to the images are still there, but I don't see the pictures anymore, I get to see a JPG logo instead. When I try to fetch the images I get a 502 "Bad Gateway" error. I don't know what causes the images to disappear and how to fix this.
By default, Directus stores uploaded files locally on disk.
All Heroku applications run in a collection of lightweight Linux containers called dynos. Be aware that Heroku dyno's filesystem is ephemeral.
It means if your Heroku app doesn't receive any traffic for 30 minutes or is being deployed, the VM it lives on is destroyed, and its filesystem goes along with it. So, this filesystem should not be used for any permanent storage (Directus storage in your case).
You can configure Directus to use S3, Google Cloud Storage, Azure, or Cloudinary.
For more details check the File Storage Directus docs.
I've deployed Strapi on Heroku and have set up the content fine. When I uploaded images and videos to Strapi using the cms interface and saved the update. it saved successfully but the file url returns 404. has anyone experienced this before? Am I missing something?
Thanks guys.
https://strapi.io/documentation/3.0.0-beta.x/guides/deployment.html#file-uploads
File Uploads
Like with project updates on Heroku, the file system doesn't support local uploading of files as they will be wiped when Heroku "Cycles" the dyno. This type of file system is called ephemeral, which means the file system only lasts until the dyno is restarted (with Heroku this happens any time you redeploy or during their regular restart which can happen every few hours or every day).
Due to Heroku's filesystem you will need to use an upload provider such as AWS S3, Cloudinary, or Rackspace. You can view the documentation for installing providers here and you can see a list of providers from both Strapi and the community on npmjs.com.
I have a Rails App launched in Heroku but because of the Active Storage on Heroku I now need a cloud file storage. I know that there is Amazon's S3 but I really don't want to create another account on another service. There isn't another add-on from Heroku that give the storage I need without going 'outside'?
Hope you can help me. Thank you.
There isn't another add-on from Heroku that give the storage I need without going 'outside'?
While that was the case at one point, that hasn't been true for some time. There are a number of addons available in the marketplace, under the Data Stores sub-heading, that fit the bill. They are external services but you can access them directly through your Heroku account. A couple examples:
HDrive - S3 and Azure object storage
Cloudcube - S3 addon
Bucketeer - S3 addon
These should allow you to leverage external file storage without creating additional account.
So, my problem is:
- I have an heroku repository with images from users in "public/assets/.." using the paperclip gem
- I have another local repository with test images like "from users" but it's different.
If i change .gitignore and add "public/assets/*" after a couple of days all my images are gone frome heroku (((
If i delete from "public/assets/*" after pushing my local repository to heroku all my real "users images" will be replaced with test users images.
What should i do to fix this?
thx
Not sure if this is related, but Heroku has a read-only filesystem (although on Cedar you have an ephemeral filesystem). Over time, your app may idle out and move to a different dyno, meaning your tmp folder is clean and clear. There is no file mirroring between dynos. This could be why your images seem to dissapear after a couple of days.
If you're using Paperclip / uploaded images at all, you need to look at using something like S3.
I have an app in Heroku, I need simple file storage for uploaded images for this I
used send_data using attachment_fu plugin.
After that I have used the tmp/ directory to write this file and want to display on browser, But these files are not displayed in browser.
How can I display these images on browser?
What is the alternate solution to store and retrieve images?
Thanks!
You cannot store uploaded files on Heroku.
You must use an alternative strategy. A couple alternative strategies:
Store uploaded files in your database on Heroku. Because database systems are not specifically optimized for storing files, you should test out how well your application performs under load before you use this strategy.
Store uploaded files in an external storage service. Amazon S3 is a popular cloud storage service that anyone can use, and it has pay-as-you-go pricing just like Heroku. (In fact, Heroku itself runs on top of another of Amazon's cloud services, EC2.)