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


#1

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:


#2

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