mirror of
https://github.com/meineerde/dotfiles.git
synced 2026-02-16 08:32:00 +00:00
Use bundle exec to start rails apps
This commit is contained in:
parent
27e2064432
commit
d6f7f5b5ae
8
.bashrc
8
.bashrc
@ -273,11 +273,11 @@ alias ga='git add -p'
|
|||||||
ghead() { git rev-parse --verify "${1:-HEAD}"; }
|
ghead() { git rev-parse --verify "${1:-HEAD}"; }
|
||||||
|
|
||||||
alias be="bundle exec"
|
alias be="bundle exec"
|
||||||
alias rs="rails server -b 127.0.0.1"
|
alias rs="bundle exec rails server -b 127.0.0.1"
|
||||||
alias rc="rails console"
|
alias rc="bundle exec rails console"
|
||||||
|
|
||||||
ss() { if [[ -x script/server ]]; then script/server "${1:-webrick}" -b 127.0.0.1 "${@:2}"; else rs $@; fi }
|
ss() { if [[ -x script/server ]]; then bundle exec script/server webrick -b 127.0.0.1 "$@"; else rs $@; fi }
|
||||||
sc() { if [[ -x script/console ]]; then script/console "$@"; else rc "$@"; fi }
|
sc() { if [[ -x script/console ]]; then bundle exec script/console "$@"; else rc "$@"; fi }
|
||||||
http() {
|
http() {
|
||||||
port=${1:-8000}
|
port=${1:-8000}
|
||||||
python -m SimpleHTTPServer $port
|
python -m SimpleHTTPServer $port
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user