用于 RoR 的 ubuntu 机器上的 prax [英] prax on ubuntu machine for RoR

查看:51
本文介绍了用于 RoR 的 ubuntu 机器上的 prax的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人成功安装和配置过prax"https://github.com/ysbaddaden/prax ?我试过在多台电脑上配置它,但没有成功.

Has anyone successfully installed and configured 'prax' https://github.com/ysbaddaden/prax ? I have tried configuring it on multiple pc but no success.

有 pow 但它只适用于 OSX.如果有其他选择,请分享.

There is pow but it works only on OSX. If any other alternative please share.

推荐答案

首先,安装 Prax 并按照其 GitHub 上的说明配置您的应用.

First, install Prax and configure your apps as stated on its GitHub.

要知道是否真的有效,请 ping 一个想要的应用.

To know if actually is working, ping to a desire app.

ping myapp.dev

它应该 ping 到您的环回 (127.0.0.1).如果这不是您的情况,请再次检查.

It should ping to your loopback (127.0.0.1). If this is not your case, check again.

然后按照以下步骤操作:

Then follow this steps:

1) 重启你的服务器

2) 重新启动浏览器.如果您使用的是 Chrome,则可能需要清除缓存(如所述:https://github.com/ysbaddaden/prax/issues/51Pow 域未加载在 Chrome 中)

2) Restart your browser. If you are using Chrome, you might need to clear the cache (as stated on: https://github.com/ysbaddaden/prax/issues/51 and Pow domains not loading in Chrome)

3) 启动应用程序:

http://myapp.dev/

第一次使用 http:// 前缀很重要.

It is important that the first time you use the http:// prefix.

如果您使用的是 Rails(Webrick 的默认端口为 3000,您应该将此端口添加到 URL,(我不知道如何避免这种情况):

If you are using Rails (which server Webrick defaults to port 3000, you should add this port to the URL, (I couldn't figure it out how to avoid this):

http://myapp.dev:3000/

这篇关于用于 RoR 的 ubuntu 机器上的 prax的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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