1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2025-10-17 19:41:01 +00:00

Explicitly use webrick in ss function to workaround strange argument parsing in updated old rails versions

This commit is contained in:
Holger Just 2019-03-25 12:13:57 +01:00
parent 7e1bf02e2d
commit d205b117bd

View File

@ -262,8 +262,8 @@ alias be="bundle exec"
alias rs="rails server -b 127.0.0.1"
alias rc="rails console"
ss() { if [[ -x script/server ]]; then script/server -b 127.0.0.1 $@; else rs $@; fi }
sc() { if [[ -x script/console ]]; then script/console $@; else rc $@; fi }
ss() { if [[ -x script/server ]]; then script/server "${1:-webrick}" -b 127.0.0.1 "${@:2}"; else rs $@; fi }
sc() { if [[ -x script/console ]]; then script/console "$@"; else rc "$@"; fi }
http() {
port=${1:-8000}
python -m SimpleHTTPServer $port