Ask A Question

Notifications

You’re not receiving notifications from this thread.

Deploy rails 7.2+

Sultanmyrza Kasymbekov asked in Servers

Rails 7.2 dev containers include a compose file, enabling me to run Rails, PostgreSQL, and Redis locally with just Docker installed on my system.

So I created run: rails new --rails-version 7.2.0 \
my_rails_app \
--css=tailwind \
--database=postgresql \
--asset-pipeline=propshaft \
--devcontainer

Now what’s the easiest way to deploy a Rails 7.2 app? Anyone tried?

Reply

Your command will create an app named rails-version the 7.2.0 is ignored, at least on my computer. Here's what I did
$ gem install rails
$ rails -v # to confirm 7.2.0
$ rails new my_rails_7.2_app \
--css=bootstrap \
--database=postgresql \
--asset-pipeline=propshaft \
--devcontainer

Created an app. Many Bootstrap errors and warnings, but otherwise seems OK. But I shouldn't have had to do the first step using devcontainer, so I am doing something wrong.

Reply

Getting Started with Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html
Maybe because I'm not using VS Code, I had to do it differently

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,796+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.