{"id":30127,"date":"2017-06-06T18:01:15","date_gmt":"2017-06-06T10:01:15","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=30127"},"modified":"2022-07-22T19:30:05","modified_gmt":"2022-07-22T11:30:05","slug":"manage-local-server-with-hotel","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/","title":{"rendered":"Manage Local Server .dev Environments with &#8220;Hotel&#8221;"},"content":{"rendered":"<p>Every web developer needs their own <strong>local server environment<\/strong> for testing projects. These servers can range from PHP\/MySQL to complex setups with Rails, <a href=\"https:\/\/www.hongkiat.com\/blog\/webdev-with-mongodb-part1\/\">Mongo<\/a>, or Node.js.<\/p>\n<p>With <strong><a href=\"https:\/\/github.com\/typicode\/hotel\" target=\"_blank\" rel=\"noopener\">Hotel<\/a><\/strong>, you can build custom <code>.dev<\/code> environments <strong>for multiple server setups<\/strong>, all with one tool on one computer. It\u2019s the perfect resource for new & experienced developers alike.<\/p>\n<p class=\"note\"><strong>Read Also:<\/strong> <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/ampps-server\/\" rel=\"noopener\">A Look Into: Setting Up Local Server with AMPPS<\/a><\/p>\n<figure><a href=\"https:\/\/github.com\/typicode\/hotel\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/manage-local-server-with-hotel\/01-hotel-dev-terminal.gif\" alt=\"Hotel dev cli\" width=\"880\" height=\"491\"><\/a><\/figure>\n<p>Hotel <strong>supports all OS types<\/strong>, including Mac OS X, Microsoft Windows, and most variants of Linux. It <strong>runs through terminal\/Shell commands<\/strong>, so you need to use the command line to run this application. But, it\u2019s all pretty easy to get started and incredibly powerful once you get going.<\/p>\n<p>You need to <strong>install Node\/npm<\/strong> before you can run Hotel. It\u2019s powered on the Node backend but you only need <strong>one line of code<\/strong> to get it installed:<\/p>\n<pre>\r\nnpm install -g hotel && hotel start\r\n<\/pre>\n<p>From there, you can set up <strong>any type of local server environment<\/strong> with support for basically every web technology you can imagine.<\/p>\n<p>Each local server can be configured with <strong>custom language support<\/strong> such as PHP or Ruby. Plus, you can define <strong>custom installs for frameworks<\/strong> such as Laravel, RoR, or Django (among others).<\/p>\n<p>The best part is that each local server comes with a <strong>unique <code>.dev<\/code> subdomain<\/strong>. So, you can set up a local environment at <code>laravel.dev<\/code> which would link directly to your Laravel environment.<\/p>\n<p>All the code is <strong>completely open source<\/strong> and the <strong>full documentation<\/strong> is available <a href=\"https:\/\/github.com\/typicode\/hotel\" target=\"_blank\" rel=\"noopener\">on GitHub<\/a>.<\/p>\n<p>But, if you\u2019re looking for a clear starting point I recommend <a href=\"https:\/\/www.youtube.com\/watch?v=BHW4tzctQ0k\" target=\"_blank\" rel=\"noopener nofollow\">this video<\/a> created by Josh Owens of Spacedojo. It\u2019s only an eight-minute video and it\u2019ll cover everything you need to <strong>get local <code>.dev<\/code> servers running on Hotel<\/strong> in minutes.<\/p>\n<p class=\"video-19by6\"><iframe loading=\"lazy\" width=\"1000\" height=\"563\" src=\"https:\/\/www.youtube.com\/embed\/BHW4tzctQ0k\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p class=\"note\"><strong>Read Also:<\/strong> <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/developers-command-line\/\" rel=\"noopener\">Why All Developers Should Learn Command Line<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Every web developer needs their own local server environment for testing projects. These servers can range from PHP\/MySQL to complex setups with Rails, Mongo, or Node.js. With Hotel, you can build custom .dev environments for multiple server setups, all with one tool on one computer. It\u2019s the perfect resource for new &#038; experienced developers alike.&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3400,3393],"tags":[4656,511],"topic":[4520,4521],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Manage Local Server .dev Environments with &quot;Hotel&quot; - Hongkiat<\/title>\n<meta name=\"description\" content=\"Every web developer needs their own local server environment for testing projects. These servers can range from PHP\/MySQL to complex setups with Rails,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Manage Local Server .dev Environments with &quot;Hotel&quot;\" \/>\n<meta property=\"og:description\" content=\"Every web developer needs their own local server environment for testing projects. These servers can range from PHP\/MySQL to complex setups with Rails,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2017-06-06T10:01:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-22T11:30:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/manage-local-server-with-hotel\/01-hotel-dev-terminal.gif\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/manage-local-server-with-hotel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/manage-local-server-with-hotel\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"Manage Local Server .dev Environments with &#8220;Hotel&#8221;\",\"datePublished\":\"2017-06-06T10:01:15+00:00\",\"dateModified\":\"2022-07-22T11:30:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/manage-local-server-with-hotel\\\/\"},\"wordCount\":304,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/manage-local-server-with-hotel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/manage-local-server-with-hotel\\\/01-hotel-dev-terminal.gif\",\"keywords\":[\"Localhost and Webserver\",\"Web Developers\"],\"articleSection\":[\"Hosting\",\"Toolkit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/manage-local-server-with-hotel\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/manage-local-server-with-hotel\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/manage-local-server-with-hotel\\\/\",\"name\":\"Manage Local Server .dev Environments with \\\"Hotel\\\" - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/manage-local-server-with-hotel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/manage-local-server-with-hotel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/manage-local-server-with-hotel\\\/01-hotel-dev-terminal.gif\",\"datePublished\":\"2017-06-06T10:01:15+00:00\",\"dateModified\":\"2022-07-22T11:30:05+00:00\",\"description\":\"Every web developer needs their own local server environment for testing projects. These servers can range from PHP\\\/MySQL to complex setups with Rails,\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/manage-local-server-with-hotel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/manage-local-server-with-hotel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/manage-local-server-with-hotel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/manage-local-server-with-hotel\\\/01-hotel-dev-terminal.gif\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/manage-local-server-with-hotel\\\/01-hotel-dev-terminal.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/manage-local-server-with-hotel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Manage Local Server .dev Environments with &#8220;Hotel&#8221;\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Manage Local Server .dev Environments with \"Hotel\" - Hongkiat","description":"Every web developer needs their own local server environment for testing projects. These servers can range from PHP\/MySQL to complex setups with Rails,","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/","og_locale":"en_US","og_type":"article","og_title":"Manage Local Server .dev Environments with \"Hotel\"","og_description":"Every web developer needs their own local server environment for testing projects. These servers can range from PHP\/MySQL to complex setups with Rails,","og_url":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2017-06-06T10:01:15+00:00","article_modified_time":"2022-07-22T11:30:05+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/manage-local-server-with-hotel\/01-hotel-dev-terminal.gif","type":"","width":"","height":""}],"author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"Manage Local Server .dev Environments with &#8220;Hotel&#8221;","datePublished":"2017-06-06T10:01:15+00:00","dateModified":"2022-07-22T11:30:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/"},"wordCount":304,"commentCount":2,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/manage-local-server-with-hotel\/01-hotel-dev-terminal.gif","keywords":["Localhost and Webserver","Web Developers"],"articleSection":["Hosting","Toolkit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/","url":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/","name":"Manage Local Server .dev Environments with \"Hotel\" - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/manage-local-server-with-hotel\/01-hotel-dev-terminal.gif","datePublished":"2017-06-06T10:01:15+00:00","dateModified":"2022-07-22T11:30:05+00:00","description":"Every web developer needs their own local server environment for testing projects. These servers can range from PHP\/MySQL to complex setups with Rails,","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/manage-local-server-with-hotel\/01-hotel-dev-terminal.gif","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/manage-local-server-with-hotel\/01-hotel-dev-terminal.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/manage-local-server-with-hotel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Manage Local Server .dev Environments with &#8220;Hotel&#8221;"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-7PV","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/30127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=30127"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/30127\/revisions"}],"predecessor-version":[{"id":60621,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/30127\/revisions\/60621"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=30127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=30127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=30127"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=30127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}