Skip to content

Instantly share code, notes, and snippets.

@yoshiya54
Last active June 19, 2017 15:07
Show Gist options
  • Save yoshiya54/8fa3b4fd6c8c8b45eddc976c877ce895 to your computer and use it in GitHub Desktop.
Save yoshiya54/8fa3b4fd6c8c8b45eddc976c877ce895 to your computer and use it in GitHub Desktop.
Vagrantでwebサーバを動かしてハマったこと ref: http://qiita.com/yoshiya64/items/09c94bd70c00bde5335c
rails new [project name]
rails -s
netstat -an
tcp 0 0 127.0.0.1:3000 0.0.0.0:* LISTEN
rails s -b 0.0.0.0
config.vm.network "forwarded_port", guest: 3000, host: 3000
systemctl stop firewalld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment