代码拉取完成,页面将自动刷新
Vagrant.configure("2") do |config|
# Box based on ubuntu/trusty32. Limited but it works without any
# virtualization extensions.
config.vm.define "scrapy-vm-32"
config.vm.box = "lookfwd/scrapybook32"
config.vm.hostname = "dev"
config.vm.synced_folder ".", "/home/vagrant/book"
# Setting up ports
(
[9200] + # ES
[6379] + # Redis
[3306] + # MySQL
[9312] + # Web
[6800] + # Scrapyd
[]).each do |port|
config.vm.network "forwarded_port", guest: port, host: port, host_ip: "localhost", auto_correct: true
end
# Set the mem/cpu requirements
config.vm.provider :virtualbox do |vb|
vb.name = "scrapy-vm-32"
vb.check_guest_additions = false
vb.cpus = 1
# If you get: cloud-init-nonet[4.54]: waiting 10 seconds for network device
# cloud-init-nonet[14.57]: waiting 120 seconds for network device
# cloud-init-nonet[134.57]: gave up waiting for a network device.
# Your netowrk card is not supported with the default adapter.
# See: https://github.com/mitchellh/vagrant/issues/3860#issuecomment-167664778
# Try to uncomment the following two lines:
#
# vb.customize ["modifyvm", :id, "--nictype1", "Am79C973"]
# vb.customize ["modifyvm", :id, "--nictype2", "Am79C973"]
end
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。