This repository has been archived by the owner on Jun 28, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep vm.rb and canonical instructions for it in this repo
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# RailsBridge VM application template for running inside VirtualBox | ||
# | ||
# The VirtualBox NAT interface (which connects the guest to the host) is | ||
# probably 10.0.2.15, but just in case something changes in the future, | ||
# listen on all interfaces, and whitelist all 10.* networks. | ||
|
||
environment "config.web_console.whitelisted_ips = '10.0.0.0/8'", env: 'development' | ||
|
||
append_file 'config/boot.rb', <<EOF | ||
# Configure server for VirtualBox (added by RailsBridge VM) | ||
require 'rails/commands/server' | ||
module Rails | ||
class Server | ||
def default_options | ||
super.merge(Host: '*', Port: 3000) | ||
end | ||
end | ||
end | ||
EOF |