convert docker rails commands to raw rails commands
This commit is contained in:
parent
39c45033de
commit
c12b5b650f
@ -216,19 +216,12 @@ alias brewu='brew update && brew upgrade && brew cleanup && brew doctor'
|
|||||||
# emacs
|
# emacs
|
||||||
alias emacs="env LC_CTYPE=zh_CN.UTF-8 emacs"
|
alias emacs="env LC_CTYPE=zh_CN.UTF-8 emacs"
|
||||||
|
|
||||||
# docker
|
# rails
|
||||||
alias ds='dc exec server'
|
alias rails_setup_test='rails db:reset db:seed RAILS_ENV=test'
|
||||||
alias ds_setup='ds rails db:reset db:seed RAILS_ENV=test'
|
alias rubocop='rubocop --require rubocop/formatter/junit_formatter --require rubocop-performance --format progress'
|
||||||
alias ds_rubocop='ds rubocop --require rubocop/formatter/junit_formatter \
|
alias rails_test='rspec && rubocop'
|
||||||
--require rubocop-performance \
|
alias psetup='rake parallel:setup'
|
||||||
--format progress'
|
alias prspec='rake parallel:spec'
|
||||||
alias ds_rspec='ds rspec'
|
|
||||||
alias ds_test='ds sh -c "rspec && rubocop --require rubocop/formatter/junit_formatter --require rubocop-performance -a"'
|
|
||||||
alias dsidekiq_rspec='dc exec sidekiq rspec'
|
|
||||||
alias psetup='dc exec sidekiq rake parallel:setup'
|
|
||||||
alias prspec='dc exec sidekiq rake parallel:spec'
|
|
||||||
|
|
||||||
alias rs='rancher exec -it rallets-server-1'
|
|
||||||
|
|
||||||
alias start_dropbox='~/.dropbox-dist/dropboxd'
|
alias start_dropbox='~/.dropbox-dist/dropboxd'
|
||||||
alias unzip_CN="unzip -O GB18030"
|
alias unzip_CN="unzip -O GB18030"
|
||||||
|
@ -77,7 +77,7 @@ function set_anonymous {
|
|||||||
'
|
'
|
||||||
}
|
}
|
||||||
function genAndroidKeystore {
|
function genAndroidKeystore {
|
||||||
keytool -genkey -v -keystore /tmp/.keystore -alias rallets -keyalg RSA -keysize 2048 -validity 10000
|
keytool -genkey -v -keystore /tmp/.keystore -alias rallets -keyalg RSA -keysize 2048 -validity 10000
|
||||||
}
|
}
|
||||||
function delete_except_latest {
|
function delete_except_latest {
|
||||||
total=`ll | wc -l`
|
total=`ll | wc -l`
|
||||||
|
Loading…
Reference in New Issue
Block a user