-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
And heroku? #15
Comments
I don't know – haven't used Heroku. Any ideas? |
+1 |
Any ideas? |
I'm writing this custom rake task right now to send my sitemap to s3, but in the ping part of the dynamic sitemap generator you'd need to point to the s3 route. Oh and the config for the generator points to tmp directory.
Added heroku scheduler to run once a day. |
That sounds like a good solution. |
It is supposed to if you use robots.txt. However I couldn't submit it
|
So your suggestion is to implement that in the plugin, so that it loads the file contents from S3 and serves that? |
I did not implement it into the gem, I just am using that rake task for
|
I forked this gem to support store sitemaps at database or AWS. ASAP I will do a pull request, i'm only waiting to have time to write some tests This fork is available at: And the branch with this feature is named adds-custom-storages If someone wants to write those tests… it should be great! |
Thanks – looking forward to that! :) On 25 Feb 2014 at 18:54:39, Dalton ([email protected]) wrote: I forked this gem to support store sitemaps at database or AWS. ASAP I will do a pull request, i'm only waiting to have time to write some tests This fork is available at: And the branch with this feature is named adds-custom-storages If someone wants to write those tests… it should be great! — |
@efqdalton I would love to use your fork - any chance you could provide some pointers on how to use it please? |
I'm in such a rush this year, and I didn't have time to organize it... So, if someone could finish that, it would be nice! Im using it in production on this site kuadro.com.br, but most of glue code is written in the app, using database as persistence, so it works. On my fork, exists a branch called adds-custom-storage, use this branch. So at config file you have to put this:
And add a migration like that to create Sitemap model:
And there is a a Job on Sidekiq squeduler that calls, once a day, this:
Now explaining better, to provide pointers to someone who wants to finish it: As you could see, I created an abstract class Storage, and I added "3" implementations: DatabaseStorage, LocalStorage and S3Storage. But don't be so happy, S3Storage is not working, I just started to write it, and not finished, since I started using DatabaseStorage, and it's working well... sorry... One more problem, as you could see, the last change that I made to this branch was at Feb 25, so if someone finish it, it would be nice to rebase it... So, I hope that I could help writing this, ask if there is more doubts, maybe I forgot something... 8 months is a long time to remember all details of a almost finished code. |
https://github.com/kjvarga/sitemap_generator could be used as an example of how to hook up S3 storage. |
@tayeke - Are your environment variables loaded fine when you run a rake task? I'm having trouble loading the values from my The code works fine with string literals. http://stackoverflow.com/questions/29585431/env-variables-not-loaded-when-invoked-in-rake-task I'm using Mac Yosemite, Foreman and Unicorn. My .env file has the right keys. |
For anyone in here wondering, on Heroku the env variables will be loaded fine when running something like |
Heroku file system prevent creation of static files. How can i use dynamic_sitemaps?
The text was updated successfully, but these errors were encountered: