Shortcut to rails s -b $IP -p $PORT


Is there an easy way to set up a batch command sothat I do not every logon need to type:

rails s -b $IP -p $PORT  
sudo service postgresql start

I’m a newbe with linux, so my apologies if my question is too obvious. :slight_smile:


One can simply throw commands in a shell script and run that.