Last Updated: February 25, 2016
·
3.251K
· peeyek

using custom host, server, and port in rackup or foreman

this is my configuration in my daily development, i'm using foreman to run my apps. this is my Procfile :

# -o [host] -p [port] -s [server]
web: rackup -o development -p 9000 -s thin
# this will run my apps on http://development:9000/

-o your custom hosts, make sure you add development on your /etc/hosts file. you can change it with you prefer like myapps.

-p your custom port

-s your custom server

manually you can run without install foreman. just type in your terminal:

rackup -o development -p 9000 -s thin