This guide uses the domain your-domain.tld and its www. prefixed version.
It starts the rocket application on 127.0.0.1:1337 and as the user www-data. The proxy listens on port 80 and 443 though.
If you need other values, update them accordingly in your nginx and systemd configs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Save this file to ~/.multirust/Makefile | |
| # to run, cd ~/.multirust; make toolchains/1.3.0/src | |
| .PHONY: clean | |
| rust.git: | |
| git clone https://github.com/rust-lang/rust.git --bare | |
| toolchains/nightly/src: toolchains/master/src | |
| ln -sf $$(pwd)/toolchains/master/src $$(pwd)/$@ |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Analyze text: "the <b>quick</b> bröwn <img src="fox"/> "jumped"" | |
| curl -XPUT 'http://127.0.0.1:9200/foo/' -d ' | |
| { | |
| "index" : { | |
| "analysis" : { | |
| "analyzer" : { | |
| "test_1" : { | |
| "char_filter" : [ | |
| "html_strip" |