Node Reload
大小:0.07MiB版本:v 1.1更新时间:2012-09-09
automatic updating of the browser from vim using node.js
Node Reload 的使用方法详解,最全面的教程
Node Reload 描述:
用户数:347
分类:开发者工具插件
扩展大小:0.07M
最后更新时间:2012-09-09
版本:v 1.1
Node Reload 插件简介:
这是来自Chrome商店的 Node Reload 浏览器插件,您可以在当前页面下载它的最新版本安装文件,并安装在Chrome、Edge等浏览器上。
Node Reload插件下载方法/流程:
点击下载按钮,关注“扩展迷Extfans”公众号并获取验证码,在网页弹窗中输入验证码,即可下载最新安装文件。
Node Reload插件安装教程/方法:
(1)将扩展迷上下载的安装包文件(.zip)解压为文件夹,其中类型为“crx”的文件就是接下来需要用到的安装文件
(2) 从设置->更多工具->扩展程序 打开扩展程序页面,或者地址栏输入 Chrome://extensions/ 按下回车打开扩展程序页面
(3) 打开扩展程序页面的“开发者模式”
(4) 将crx文件拖拽到扩展程序页面,
完成安装如有其它安装问题,
请扫描网站底部二维码与客服联系如有疑问请参考:
https://www.extfans.com/installation/1. Save the file with vim
2. Automatically update the browser
───────────────────────────────
Install Manual
───────────────────────────────
[Japanese]
http://temog.info/archives/programming/vim-node-js-chrome-extension.html
[English]
1. vim setting
added to vimrc. replace example.com
-----------------------------------
let wgetstr = "!wget -q --spider \"http://example.com:8000/?path=" . expand("%:p:h") . "\""
autocmd BufWritePost *.php,*.css silent exe wgetstr
----------------------------------
install node.js + express + socket.io to vps
----------------------------------
yum install -y openssl-devel gcc-c++
wget http://nodejs.org/dist/v0.8.8/node-v0.8.8.tar.gz
tar zxvf node-v0.8.8.tar.gz
cd node-v0.8.8
./configure
make
sudo make install
mkdir -p ~/node/node-reload
cd ~/node/node-reload
sudo npm install -g forever
sudo npm install express
sudo npm install socket.io
sudo npm install socket.io-client
sudo npm install ejs
express -e
----------------------------------
edit app.js file
----------------------------------
#before
app.set('port', process.env.PORT || 3000);
#after
app.set('port', process.env.PORT || 8000);
----------------------------------
edit routes/index.js file
----------------------------------
# replace a file with git.hub
https://raw.github.com/temog/node-reload/master/node/routes/index.js
# replace example.com
var csocket = client.connect('http://example.com:8001');
----------------------------------
start the server with forever
----------------------------------
forever start app.js
----------------------------------
install chrome extension.
after installation, enter the URL of the websocket.
----------------------------------
# replace example.com
http://example.com:8001
----------------------------------
Installation complete.
Automatic Updates will begin to check the path from the popup of Extension after you save the file in vim