Git Product home page Git Product logo

cheatsheets's Introduction

cheatsheets's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cheatsheets's Issues

yarn run dev后, 如何通过IP访问

环境

版本和配置信息

  • ruby版本:2.3
  • ubuntu:16.04

说明

  • 腾讯云

IP

  • 内网: 172.16.0.12

操作

导致该问题的操作或现象

依据 rstacruz's cheatsheets 提示进行

yarn install
bundle install
SET PORT=4001
yarn run dev

之后, telnet 127.0.0.1:4001 能通, 内网与公网 telnet 不通.

防火墙已开4001端口.

日志

日志或报错信息

ubuntu@VM-0-12-ubuntu:~$ telnet 127.0.0.1 4001
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Connection closed by foreign host.
ubuntu@VM-0-12-ubuntu:~$ telnet 172.16.0.12 4001
Trying 172.16.0.12...
telnet: Unable to connect to remote host: Connection refused
ubuntu@VM-0-12-ubuntu:~$

思考与提问

经查, yarn run dev 是 运行的 make dev, 通过Makefile, 知, 运行的是下面部分

dev-jekyll:
	if [ -f _site ]; then \
		bundle exec jekyll serve --safe --trace --drafts --watch --incremental --port $(PORT); \
		else \
		bundle exec jekyll serve --safe --trace --drafts --watch --port $(PORT); \
		fi

那么如何在这bundle exec jekyll serve里面绑定IP, 从而使得能够通过

wget http://172.16.0.12:4001/ 

获取

wget http://127.0.0.1:4001/ 

一样的效果呢?

另问, 这个项目是yarn run dev启动形成服务网页的么? 难道我的方式本身就不对?

Cheatsheet request: SQL

Surely a good one to have for the most common SQL queries for setting up a database, tables, joins and CRUD operations

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.