Skip to content

Tomo in production #286

Answered by mattbrictson
francois0690 asked this question in Q&A
Mar 27, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @francois0690 ! Good questions.

How do I use Tomo to delete all other folders except the currently used version?

This happens automatically when the core:clean_releases task runs (it should be near the end of your deploy block). By default, it will keep the most recent 10 release folders and delete the older ones. If you want to keep only 1 release, add this setting to your .tomo/config.rb file:

set keep_releases: 1

Multiple update for load-balancing

Tomo is designed to deploy to multiple servers simultaneously. In your .tomo/config.rb, add a host line for each server, like this:

host "deployer@www1.example.com"
host "deployer@www2.example.com"

Now you can run tomo setup to set up …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@francois0690
Comment options

Answer selected by francois0690
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants