You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update Rails and Ruby
- Ruby 3.2 has been released, by setting the maximum to `< 3.3` developers can use Ruby 3.2 with this example app.
- Update Rails patch level 7.0.4.2 is the latest patch level of Rails
- Puma got rid of the DefaultRackup constant so we can remove it too. This is now the default behavior.
- Bump gems via `bundle update`
* Remove docker instructions from README
Docker is not recommended and these instructions haven't been updated for quite some time.
* Add check step before `heroku create`
If you run the `heroku create` command in the wrong directory, the rest of the commands won't work. Add a checksum step before to help users ensure they're in the correct directory.
Copy file name to clipboardExpand all lines: README.md
+10-29Lines changed: 10 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,16 @@ By default, apps use Eco dynos if you are subscribed to Eco. Otherwise, it defau
26
26
27
27
Eligible students can apply for platform credits through our new [Heroku for GitHub Students program](https://blog.heroku.com/github-student-developer-program).
28
28
29
+
Ensure you're in the correct directory:
30
+
31
+
```sh
32
+
$ ls
33
+
Gemfile Procfile Rakefile app.json config db log public tmp
34
+
Gemfile.lock README.md app bin config.ru lib package.json test vendor
35
+
```
36
+
37
+
You should see a `Gemfile` file. Then run:
38
+
29
39
```sh
30
40
$ heroku create
31
41
$ git push heroku main
@@ -37,35 +47,6 @@ or
37
47
38
48
[](https://heroku.com/deploy)
39
49
40
-
## Docker
41
-
42
-
The app can be run and tested using the [Heroku Docker CLI plugin](https://devcenter.heroku.com/articles/local-development-with-docker-compose).
43
-
44
-
Make sure the plugin is installed:
45
-
46
-
heroku plugins:install heroku-docker
47
-
48
-
Configure Docker and Docker Compose:
49
-
50
-
heroku docker:init
51
-
52
-
And run the app locally:
53
-
54
-
docker-compose up web
55
-
56
-
The app will now be available on the Docker daemon IP on port 8080.
57
-
58
-
To work with the local database and do migrations, you can open a shell:
59
-
60
-
docker-compose run shell
61
-
bundle exec rake db:migrate
62
-
63
-
You can also use Docker to release to Heroku:
64
-
65
-
heroku create
66
-
heroku docker:release
67
-
heroku open
68
-
69
50
## Documentation
70
51
71
52
For more information about using Ruby on Heroku, see these Dev Center articles:
0 commit comments