世博和无业游民 [英] Expo and Vagrant

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

问题描述

我正在尝试在一个无所事事的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?

推荐答案

要对此进行更具体的说明,流浪汉文件应包括以下行(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. Youtube教程由sureshkm

流浪文档

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

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