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
Written by Bayu
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#