Snippets

osman a set port to dir path

Created by osman a
1
2
3
4
5
6
7
8
rss () {  
  cur_dir=$(pwd)    
  if [[ $(pwd) == *"members" ]]; then
    bundle exec rails s -p 3004
  elif [[ $(pwd) == *"accounts" ]]; then
    bundle exec rails s -p 9393
  fi
}

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.