Skip to content

How do I tomo deploy for production vs staging? #292

Answered by mattbrictson
designium asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, thanks for using tomo! Good question. Production and staging would be considered "environments" in tomo terminology. The default .tomo/config.rb does not have multiple environments, but you can easily add them. There is a small bit of documentation here:

https://tomo-deploy.com/configuration/#environmentname-block

So in your case you would define an environment called "production" and move your existing host entry/entries into it, like this:

environment :production do
  host "app.example.com"
end

And then you can add a second environment named "staging" with a host entry that points to your staging server:

environment :staging do
  host "app-staging.example.com"
end

Now, when you setu…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by designium
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