automatic updating of the browser from vim using node.js1. 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
Why Download Node Reload?
- ✅ Trusted by 366+ users worldwide
- ✅ High Rating: 4.44/5 stars from 9 reviews
- ✅ Latest Version: 1.1 - Always up to date
- ✅ Safe & Secure: Verified by Chrome Web Store
- ✅ Free to Use: No cost required
Extension Details
Type: Extension
Category: Chrome Browser Extension
Compatibility: Google Chrome Browser
Last Updated: June 2, 2021
Developer: Chrome Web Store Verified
Discover Node Reload - The Best Chrome Extension for Your Browser
Looking for the perfect Chrome extension to enhance your browsing experience? Node Reload is one of the most popular and highly-rated extensions available on the Chrome Web Store, trusted by over 366 users worldwide.
With an impressive 4.44-star rating based on 9 authentic user reviews, Node Reload has proven its value and reliability to the Chrome community. This extension is perfect for users who want to improve their productivity, enhance their browsing security, or simply add useful functionality to their Chrome browser.
Download Node Reload today and join thousands of satisfied users who have already discovered the benefits of this powerful Chrome extension. Installation is quick and easy - simply click the download button above to be redirected to the official Chrome Web Store where you can safely install this extension in just a few clicks.