博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ruby目录_使用Ruby服务目录
阅读量:2516 次
发布时间:2019-05-11

本文共 717 字,大约阅读时间需要 2 分钟。

ruby目录

Quickly serving a directory using , , or  allows for quick testing with as little hassle as possible.  Imagine having to stand up apache or another server just to serve a directory -- gross!  Since I had touched the three important languages, I looked to Ruby, a language I have very little experience with.

使用 , 或快速为目录提供服务,可以尽可能快速地进行测试。 想象一下,仅为了服务目录就不得不站起来使用Apache或其他服务器-太糟糕了! 因为我接触了三种重要的语言,所以我寻找了Ruby,这是我很少有的经验。

It turns out that serving a directory with Ruby is as easy as the other languages:

事实证明,使用Ruby提供目录与其他语言一样容易:

ruby -run -e httpd . -p 8080

The -p argument obviously represents the port, so hitting localhost:8080 will get you to the served directory!

-p参数显然表示端口,因此按localhost:8080将使您进入服务目录!

翻译自:

ruby目录

转载地址:http://oyvwd.baihongyu.com/

你可能感兴趣的文章
点到平面的距离
查看>>
linux下安装FTP
查看>>
第四周编程总结
查看>>
《第12章 类的无参方法》
查看>>
经典机器学习算法系列7-svd
查看>>
mxnet系列 全连接层代码阅读
查看>>
0715
查看>>
Android开发进度06
查看>>
Beautiful Soup 中文文档
查看>>
USB各种模式 解释
查看>>
数据访问-----ADO.NET 小结和练习
查看>>
Linux lsof详解
查看>>
子组件给父组件传数据
查看>>
unix/linux下的共享内存、信号量、队列信息管理
查看>>
Hilbert先生旅馆的故事
查看>>
[家里蹲大学数学杂志]第394期分组求积分因子法
查看>>
[唐诗]送杜少府之任蜀州-王勃
查看>>
华中科技大学数学专业考研试题参考解答
查看>>
Objective-C数组初识
查看>>
appium(10)-iOS predictate
查看>>