Remote debugging using Webstrom and Sftp,supervisor node.js__c#

Source: Internet
Author: User
Overview

Develop OJ use Lrun to control and detect the time of judgment. Lrun uses Linux-specific features, so can only run him under Linux, the server uses Docker deployment is also required Linux environment. Before doing the experiment is to take the manual upload manually restart node, the development efficiency is very low.
Now through this webstorm to achieve ctrl+s trigger upload automatic contrast files, automatic exclusion file (node_module), through SFTP upload to the server, Superviosor automatically detect file changes, automatic restart. Install SFTP

Server uses centos7.0
Installation tutorials are also Baidu's.
Here is not to repeat. Configuration of Webstrom 1. Configure Remote SFTP server

File-setting Open Settings page build,execution,deployment-deployment
Add a SFTP server


Fill in Server information

Configure Mappings

Configuration exclusions, this can be node_module out
Server is set locally

Start Ctrl+s Trigger Upload

Right-click on item to start uploading for the first time

This webstrom configuration is complete, triggering the upload configuration via Ctrl+s supervisor

sudo npm install supervisor-g

Supervisor Www/server.base.js

This is configured as a Package.json script
You can then turn on automatic restart via npm run dev

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.