{"id":351,"date":"2024-02-27T22:44:40","date_gmt":"2024-02-27T13:44:40","guid":{"rendered":"https:\/\/shugomatsuzawa.com\/techblog\/?p=351"},"modified":"2024-02-27T22:51:47","modified_gmt":"2024-02-27T13:51:47","slug":"%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e4%b8%8a%e3%81%aevs-code%e3%81%a7%e3%83%aa%e3%83%a2%e3%83%bc%e3%83%88%e9%96%8b%e7%99%ba%e3%80%80tunnel%e3%81%a8serve-web","status":"publish","type":"post","link":"https:\/\/shugomatsuzawa.com\/techblog\/2024\/02\/27\/351\/","title":{"rendered":"\u30b5\u30fc\u30d0\u30fc\u4e0a\u306eVS Code\u3067\u30ea\u30e2\u30fc\u30c8\u958b\u767a\u3000tunnel\u3068serve-web"},"content":{"rendered":"\n<p>VS Code\u306b\u306f\u30ea\u30e2\u30fc\u30c8\u958b\u767a\u306e\u305f\u3081\u306e\u69d8\u3005\u306a\u6a5f\u80fd\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u308b\u3002<br>VPS\u30b5\u30fc\u30d0\u30fc\u3084\u81ea\u5b85\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u4e0a\u306eVS Code\u3092\u3001\u5225\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u4e0a\u306eVS Code\u30a2\u30d7\u30ea\u3084\u3001iPad\u7b49\u306e\u30d6\u30e9\u30a6\u30b6\u3092\u4f7f\u3063\u3066\u64cd\u4f5c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002<br>\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u53c2\u7167\u3067\u304d\u308b\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3082\u666e\u901a\u306b\u4f7f\u3048\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>\u666e\u6bb5\u4f7f\u3063\u3066\u3044\u308bVS Code\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u306b\u6a5f\u80fd\u306f\u542b\u307e\u308c\u3066\u3044\u308b\u304c\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u304c\u4e0d\u8981\u306a\u5834\u5408\u306fVS Code\u306eCLI\u7248\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<p>Linux\u306e\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3002\uff08\u4f8b\uff1ax86-64\u306e\u5834\u5408\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -Lk 'https:\/\/code.visualstudio.com\/sha\/download?build=stable&amp;os=cli-alpine-x64' --output vscode_cli.tar.gz\n\ntar -xf vscode_cli.tar.gz<\/code><\/pre>\n\n\n\n<p>\u203b\u3053\u306e\u5834\u5408\u306f<code>code<\/code>\u30b3\u30de\u30f3\u30c9\u306e\u4ee3\u308f\u308a\u306b<code>.\/code<\/code>\u3092\u4f7f\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c8\u30f3\u30cd\u30eb<\/h2>\n\n\n\n<p>\u30c8\u30f3\u30cd\u30eb\u3092\u4f7f\u3048\u3070\u7c21\u5358\u306a\u8a2d\u5b9a\u3067\u5916\u51fa\u5148\u304b\u3089\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>code tunnel<\/code><\/pre>\n\n\n\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u3001\u6307\u793a\u306b\u5f93\u3063\u3066Microsoft\u30a2\u30ab\u30a6\u30f3\u30c8\u307e\u305f\u306fGitHub\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30b5\u30a4\u30f3\u30a4\u30f3\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u5225\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306eVS Code\u30a2\u30d7\u30ea\u3001\u307e\u305f\u306f<a href=\"https:\/\/vscode.dev\" data-type=\"link\" data-id=\"https:\/\/vscode.dev\" target=\"_blank\" rel=\"noreferrer noopener\">Visual Studio Code for the Web (https:\/\/vscode.dev)<\/a>\u3092\u8d77\u52d5\u3057\u305f\u3089\u3001\u300c\u30c8\u30f3\u30cd\u30eb\u3092\u958b\u304f&#8230;\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u3068\u540c\u3058\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30b5\u30a4\u30f3\u30a4\u30f3\u3059\u308b\u3068\u3001\u4f7f\u7528\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u5e38\u6642\u8d77\u52d5\u306b\u3059\u308b\u5834\u5408\u306f\u3053\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>code tunnel service install<\/code><\/pre>\n\n\n\n<p>\u305d\u306e\u4ed6\u30b3\u30de\u30f3\u30c9\u306f\u3053\u308c\u3067\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>code tunnel --help<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><code>serve-web<\/code><\/h2>\n\n\n\n<p>\u30ed\u30fc\u30ab\u30eb\u30a8\u30ea\u30a2\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3084VPN\u3092\u4f7f\u3063\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u76f4\u63a5\u63a5\u7d9a\u3059\u308b\u5834\u5408\u306b\u4f7f\u3048\u308b\u3002<br>Microsoft\u30a2\u30ab\u30a6\u30f3\u30c8\u3084GitHub\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u4e0d\u8981\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>code serve-web<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u306e\u3060\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f<code>http:\/\/127.0.0.1:8000<\/code>\u3067\u3057\u304b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3002<br>\u5916\u90e8\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u306b\u306f\u3001<code>--host<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>code serve-web --host=192.168.1.2 --without-connection-token<\/code><\/pre>\n\n\n\n<p>\u305d\u306e\u4ed6\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3053\u3061\u3089\u3067\u78ba\u8a8d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>code serve-web --help<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c2\u8003<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/qiita.com\/ku_suke\/items\/07b67bd710b17a3a7cf3\" data-type=\"link\" data-id=\"https:\/\/qiita.com\/ku_suke\/items\/07b67bd710b17a3a7cf3\" target=\"_blank\" rel=\"noreferrer noopener\">VSCode Server\u304c\u306a\u304f\u306a\u3063\u3066\u672c\u4f53\u306b\u7d71\u5408\u3055\u308c\u3066\u3044\u305f #VSCode &#8211; Qiita<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/code.visualstudio.com\/docs\/remote\/tunnels\" data-type=\"link\" data-id=\"https:\/\/code.visualstudio.com\/docs\/remote\/tunnels\" target=\"_blank\" rel=\"noreferrer noopener\">Remote Tunnels<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/stackoverflow.com\/questions\/71046228\/how-can-i-host-vs-code-for-browser-based-remote-access\" data-type=\"link\" data-id=\"https:\/\/stackoverflow.com\/questions\/71046228\/how-can-i-host-vs-code-for-browser-based-remote-access\" target=\"_blank\" rel=\"noreferrer noopener\">How can I host VS Code for browser based remote access? &#8211; Stack Overflow<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"VS Code\u306b\u306f\u30ea\u30e2\u30fc\u30c8\u958b\u767a\u306e\u305f\u3081\u306e\u69d8\u3005\u306a\u6a5f\u80fd\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u308b\u3002VPS\u30b5\u30fc\u30d0\u30fc\u3084\u81ea\u5b85\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u4e0a\u306eVS Code\u3092\u3001\u5225\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u4e0a\u306eVS Code\u30a2\u30d7\u30ea\u3084\u3001iPad\u7b49\u306e\u30d6\u30e9\u30a6\u30b6\u3092\u4f7f\u3063\u3066\u64cd\u4f5c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002\u30b5\u30fc [&hellip;]","protected":false},"author":1,"featured_media":355,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[9,91,10],"class_list":["post-351","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-system-management","tag-linux","tag-vs-code","tag-memo"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/shugomatsuzawa.com\/techblog\/wp-content\/uploads\/sites\/3\/2024\/02\/code-8012054_1920.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":4,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":356,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/351\/revisions\/356"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media\/355"}],"wp:attachment":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}