-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
trellis update trellis #135
Comments
Completely agreed. This would be a great feature for trellis-cli 👍 I'm familiar with the Rails upgrade task and it could work like that: https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#the-update-task $ rails app:update
identical config/boot.rb
exist config
conflict config/routes.rb
Overwrite /myapp/config/routes.rb? (enter "h" for help) [Ynaqdh]
force config/routes.rb
conflict config/application.rb
Overwrite /myapp/config/application.rb? (enter "h" for help) [Ynaqdh]
force config/application.rb
conflict config/environment.rb
... |
Related: #883 Also, for people that need something right now, I'll share my current approach. Given a directory structure as created with
While # Only once: create version files
# Identify the version of your "trellis/" directory,
# e.g. look into "trellis/CHANGELOG.md"
# or whatever you passed to `trellis new` via `--trellis-version`.
# Then write the corresponding version tag
# from the roots/trellis GitHub repo to the version files.
echo "COMMON=v1.14.0" > TRELLIS_COMMON_VERSION
echo "CUSTOM=v1.14.0" > TRELLIS_CUSTOM_VERSION
# If a new version is released in the roots/trellis GitHub repo
# issue the update command for common files.
# Note that you can also choose a specific commit, e.g. `f1f8ff1`.
# If you want the latest commit don't use `master`,
# instead look into the roots/trellis GitHub repo which commit
# is the latest and use that.
./update-trellis.sh common v1.15.0
# For the customized files, first have a look what files changed.
./update-trellis.sh custom v1.15.0 --stat
# If none of the files that you customized are affected
# (you might know because you just set it up)
# give it a go.
./update-trellis.sh custom v1.15.0
# But if files that you customized are affected,
# resort to a manual copy & paste
# (note that you can still try to update with the
# script, it might just not work). Afterwards,
# update your version tracker file.
echo "CUSTOM=v1.15.0" > TRELLIS_CUSTOM_VERSION
# You can now make the changes known to git.
git add .
git commit -m "Bump trellis to v1.15.0"
git pull
git push Feedback welcome!
|
Summary
Enable a command like:
trellis update trellis
that would make it easier to update Trellis to the next versionMotivation
These instructions are great, but could they be automated as much as possible ?
https://discourse.roots.io/t/best-practices-to-update-trellis/5386/32
The text was updated successfully, but these errors were encountered: