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:
parent
3f9f4fa4aa
commit
af031f0baa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue