I am trying to create an image of a graph using ruby-graphviz
< Code> @graph Output (: output = & gt; "png" ,: file = & gt; "public / images / graph.png")
Since I am using my site, I How to save the image locally and send it to the S3 bucket, or send it directly to the S3 bucket? I appreciate any help
There are two directories to write: ./tmp and ./log (root your application). If you want to temporarily leave a file for the duration of the request, you can write on a file name such as
# {RAILS_ROOT} / tmp / myfile _ # {Process.pid}
. There is no guarantee that this file will be on subsequent requests (although may be), so it should not be used for any type of permanent storage.
Comments
Post a Comment