https://github.com/testdouble/bootboot-example
An example of using boot-boot.
https://github.com/testdouble/bootboot-example
Last synced: 6 months ago
JSON representation
An example of using boot-boot.
- Host: GitHub
- URL: https://github.com/testdouble/bootboot-example
- Owner: testdouble
- Archived: true
- Created: 2019-09-03T01:43:47.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2021-05-06T15:13:18.000Z (almost 5 years ago)
- Last Synced: 2025-01-29T14:39:16.970Z (about 1 year ago)
- Language: Ruby
- Homepage: http://blog.testdouble.com/posts/2019-09-03-3-keys-to-upgrading-rails
- Size: 1.95 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bootboot-example
This is an example of using Shopify's
[bootboot](https://github.com/Shopify/bootboot) to dual-boot an app, switching
with an environment variable.
To start, run:
```
$ bundle install
$ bundle bootboot
```
This should create `Gemfile.lock` and `Gemfile_next.lock` files for you, but it
won't ([apparently](https://github.com/Shopify/bootboot/issues/28)) install the
`RAILS_NEXT` gems, so you'll also need to run:
```
$ RAILS_NEXT=1 bundle install
```
Once both sets of gems are installed, you can run the little program in this
repo under each version, with:
```
$ bundle exec ruby program.rb
Hello! Rails is version 5.0.7.2 because RAILS_NEXT=""
```
And under the `RAILS_NEXT` version:
```
$ RAILS_NEXT=1 bundle exec ruby program.rb
Hello! Rails is version 5.1.7 because RAILS_NEXT="1"
```