世博与流浪 [英] Expo and Vagrant

查看:20
本文介绍了世博与流浪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在一个 vagrant linux 机器上构建一个 react-native-app.

I am trying to build a react-native-app on a vagrant linux box.

我正在尝试使用 expo 访问我手机上的应用程序,但它不起作用.

I am trying to access the app on my phone using expo but it just does not work.

有没有人设法通过端口转发或类似的东西来完成这项工作?

Has anyone managed to make this work with port forwarding or something similar?

推荐答案

为了更具体一点,vagrant 文件应该包含以下行(ip 地址是可选的):config.vm.network "public_network", ip: "ip 地址"

To make this a little more specific, the vagrant file should include the following line(the ip address is optional): config.vm.network "public_network", ip: "ip address"

例如:

  1. config.vm.network "public_network"
  2. config.vm.network "public_network", ip: "192.168.1.9"

这里有几个有用的链接:

Here are a couple of useful links:

  1. sureshkm 的 YouTube 教程

Vagrant 文档

这篇关于世博与流浪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆