Drop `pry` as default runtime console.

Using `pry` as the default runtime console in the production environment
is forcing us to account for it in Discourse core's codebase. In order
to avoid the additional complexity in Discourse core's codebase, we have
decided to drop `pry` as the default runtime console and rely on IRB
which is just as good these days. We will however be keeping the
dependency on `pry` around so those that would like to use it can start
it manually.
This commit is contained in:
Alan Guo Xiang Tan 2025-03-04 12:14:12 +08:00
parent 3f9f4fa4aa
commit af031f0baa
No known key found for this signature in database
GPG Key ID: 286D2AB58F8C86B6
1 changed files with 1 additions and 7 deletions

View File

@ -240,13 +240,7 @@ run:
chmod: +x
contents: |
#!/bin/bash
# If they requested a console, load pry instead
if [ "$*" == "c" -o "$*" == "console" ]
then
(cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec pry -r ./config/environment)
else
(cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec script/rails "$@")
fi
(cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec script/rails "$@")
- file:
path: /usr/local/bin/rake