Posted 5 months ago. Visible to the public. Draft.

Advantages of using appname.vcap.me:3000 over localhost:3000

Running rails server will start a local server that you can access via http://localhost:3000.

When you are working on multiple web apps, they will likely cookies with generic names on localhost. This is annoying, since you will sign out your current user whenever you switch to another app.

A better way is to use the vcap.me service. All vcap.me subdomains resolve to your local IP (127.0.0.1). That means you can use a different hostname for different apps, and you will stay logged in in each app:

Copy
http://foo-app.vcap.me:3000 => 127.0.0.1 http://bar-app.vcap.me:3000 => 127.0.0.1 http://bam-app.vcap.me:3000 => 127.0.0.1

makandra has been working exclusively with Ruby on Rails since 2007. Our laser focus on a single technology has made us a leader in this space.

Owner of this card:

Avatar
Henning Koch
Last edit:
4 months ago
by Emanuel De
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Henning Koch to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more