Is it possible to use a folder other than /tmp for temporary storage or results etc? I cant seem to find this mentioned anywhere in the docs…
Setting the TMPDIR environment variable should do it. Run like below from command line:
TMPDIR=‘/path/to/tmp/dir’ sequenceserver
Or if you are running through Apache, add this as first line of config.ru:
ENV[‘TMPDIR’] = ‘/patch/to/tmp/dir’
Priyam
Great, thanks Priyam.
Note the curly quotes should be replaced with straight quotes…otherwise, too easy.
Cheers
Den
Hi Priyam,
Is there any change to this behaviour with recent updates? I’ve moved to a new machine and sequenceserver still uses /tmp instead of the path specified in config.ru by TMPDIR=‘/path/to/tmp/dir’
Cheers
Den
Hi Den,
No, this behaviour hasn’t changed. Which Ruby version are you using? And SequenceServer is 1.0.9, right?
I guess I should make it possible to set tmpdir through config file. In the meantime, a temporary fix would be to add the following to config.ru after require ‘sequenceserver’ line:
def Dir.tmpdir
‘/path/to/tmpdir’
end
Priyam
Hi Priyam,
Thanks for the instructions - that works as expected now.
ruby --version ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
Cheers
Den