{"id":8560,"date":"2015-02-27T18:41:08","date_gmt":"2015-02-27T18:41:08","guid":{"rendered":"https:\/\/wp.okra.host\/article\/running-meteor\/"},"modified":"2021-03-07T14:30:33","modified_gmt":"2021-03-07T13:30:33","slug":"running-meteor","status":"publish","type":"ht_kb","link":"https:\/\/kb.okra.host\/de\/article\/running-meteor\/","title":{"rendered":"Laufender Meteor"},"content":{"rendered":"<h2 id=\"overview\" >\u00dcbersicht<\/h2>\n<p><a href=\"https:\/\/www.meteor.com\/\">Meteor<\/a> is a web framework written on top of Node.js.\u00a0Meteor hooks into <a href=\"https:\/\/www.phusionpassenger.com\/\">Passagier<\/a> for seamless process launching and flexible, agile\u00a0scalability. Meteor requires <a title=\"Ist ein Terminalzugang vorhanden?\" href=\"https:\/\/kb.okra.host\/de\/terminal\/is-terminal-access-available\/\">terminal access<\/a> to use. This guide covers launching Meteor on a <a title=\"Ermitteln der Plattformversion\" href=\"https:\/\/kb.okra.host\/de\/platform\/determining-platform-version\/\">v6+ platform<\/a>.<\/p>\n<h2 id=\"quickstart\" >Schnellstart<\/h2>\n<ol>\n<li><span style=\"color: #0000ff\">VORAUSSETZUNG:<\/span> follow the <a title=\"Ausf\u00fchren von MongoDB\" href=\"https:\/\/kb.okra.host\/de\/guides\/running-mongodb\/\">MongoDB tutorial<\/a> to setup MongoDB.<\/li>\n<li>Install Meteor\u00a0from the <a title=\"Zugriff auf das Terminal\" href=\"https:\/\/kb.okra.host\/de\/terminal\/accessing-terminal\/\">Terminal<\/a>:\n<ul>\n<li>\n<pre data-language=\"shell\"><code>cd ~\r\ncurl https:\/\/install.meteor.com\/ | sh<\/code><\/pre>\n<\/li>\n<li>Once done, you&#8217;ll see a confirmation that it has been installed:\n<pre>Meteor 1.0.3.1 has been installed in your home directory (~\/.meteor).\r\nWriting a launcher script to \/usr\/local\/bin\/meteor for your convenience.\r\n\r\nTo get started fast:\r\n\r\n$ meteor create ~\/my_cool_app\r\n$ cd ~\/my_cool_app\r\n$ meteor<\/pre>\n<\/li>\n<li><strong><span style=\"color: #000080\">Hinweis:\u00a0<\/span><\/strong>tempting as it may be, do not install the <code>meteor<\/code> package\u00a0from npm. The package available is an <a href=\"https:\/\/github.com\/meteor\/meteor\/issues\/1721\">unofficial fork<\/a> and has not been removed by the repository custodian.<\/li>\n<\/ul>\n<\/li>\n<li>Change directories to <code>\/var\/www<\/code> to create a new Meteor app that will, in this example, be called <code>meteorapp<\/code> and\u00a0connected to a subdomain accessible via <code>http:\/\/meteorapp.example.com<\/code>:\n<ul>\n<li>\n<pre data-language=\"shell\"><code>cd \/var\/www\r\nmeteor create meteorapp<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Next, connect <code>\u00f6ffentlich\/<\/code> zu einer <a title=\"Erstellen einer Subdomain\" href=\"https:\/\/kb.okra.host\/de\/web-content\/creating-subdomain\/\">Subdomain<\/a> innerhalb der <a title=\"Anmeldung am Bedienfeld\" href=\"https:\/\/kb.okra.host\/de\/control-panel\/logging-into-the-control-panel\/\">Bedienfeld<\/a> via\u00a0<strong>Web<\/strong> &gt; <strong><strong>Subdomains<br \/>\n<\/strong><\/strong><\/p>\n<div id=\"attachment_758\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/02\/meteor-subdomain-control-panel.png\" rel=\"lightbox-0\" data-lbwps-width=\"979\" data-lbwps-height=\"219\" data-lbwps-srcsmall=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/02\/meteor-subdomain-control-panel.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-758\" loading=\"lazy\" class=\"size-medium wp-image-758\" src=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/02\/meteor-subdomain-control-panel-300x67.png\" alt=\"Connecting Meteor to a subdomain in the control panel\" width=\"300\" height=\"67\" \/><\/a><\/p>\n<p id=\"caption-attachment-758\" class=\"wp-caption-text\">Connecting Meteor to a subdomain in the control panel<\/p>\n<\/div>\n<\/li>\n<li>Now for the most difficult and daring\u00a0step: adding 6 directives and substituting variables! Meteor requires a few environment variables to run reliably. These variables are\u00a0handed off from Apache to Passenger and passed onto Meteor. You will need to know your <a title=\"Standort des Home-Verzeichnisses\" href=\"https:\/\/kb.okra.host\/de\/platform\/home-directory-location\/\">home directory<\/a>, because this location\u00a0stores a few additional Meteor system files. Create a <a title=\".htaccess-Leitfaden\" href=\"https:\/\/kb.okra.host\/de\/guides\/htaccess-guide\/\">.htaccess<\/a> control file in <code>\u00f6ffentlich\/<\/code>\n<ul>\n<li>\n<pre>PassengerNodejs \/usr\/bin\/node\r\nPassengerStickySessions On\r\nSetEnv HOME \/home\/&lt;USERNAME&gt;\r\nSetEnv MONGO_URL mongodb:\/\/127.0.0.1:&lt;PORT&gt;\/meteor\r\nSetEnv MONGO_OPLOG_URL mongodb:\/\/127.0.0.1:&lt;PORT&gt;\/local\r\nSetEnv ROOT_URL http:\/\/&lt;HOSTNAME&gt;<\/pre>\n<\/li>\n<li>Substitute <em>&lt;HOSTNAME&gt;<\/em> for your fully-qualified domain\u00a0created within the control panel. In our example, taking into account the domain <em>Beispiel.com<\/em> and subdomain <em>meteorapp<\/em>, it is <em>meteorapp.example.com<\/em>.<\/li>\n<li>Substitute <em>&lt;PORT&gt;<\/em> for the MongoDB port\u00a0chosen from the <span style=\"color: #0000ff\">VORAUSSETZUNG<\/span> MongoDB tutorial at the start.<\/li>\n<li>Substitute <em>&lt;USERNAME&gt;<\/em> for the username that you logged into the control panel with and where Meteor was installed. This is your home directory.<\/li>\n<\/ul>\n<\/li>\n<li>Access your Meteor install through the web site. The first request will take several seconds to initialize and connect to the database. Once initialized, subsequent requests will be much faster (and have a 95% chance of vaporizing\u00a0from exceeding\u00a0terminal velocity).<\/li>\n<li><em><em><strong>Viel Spa\u00df!<br \/>\n<\/strong><\/em><\/em><\/p>\n<div id=\"attachment_759\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/02\/meteor-confirmation-dialog.png\" rel=\"lightbox-1\" data-lbwps-width=\"383\" data-lbwps-height=\"231\" data-lbwps-srcsmall=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/02\/meteor-confirmation-dialog.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-759\" loading=\"lazy\" class=\"size-medium wp-image-759\" src=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/02\/meteor-confirmation-dialog-300x181.png\" alt=\"Meteor confirmation page on a basic install\" width=\"300\" height=\"181\" \/><\/a><\/p>\n<p id=\"caption-attachment-759\" class=\"wp-caption-text\">Meteor confirmation page after installation<\/p>\n<\/div>\n<\/li>\n<\/ol>\n<h2 id=\"odds-and-ends\" >Odds and Ends<\/h2>\n<h3 id=\"restarting\" >Neustart von<\/h3>\n<p>Meteor piggybacks Passenger, and in doing so, can be easily restarted using the <code>tmp\/<\/code> control directory. Follow the general\u00a0<a title=\"Neustart von Passagierprozessen\" href=\"https:\/\/kb.okra.host\/de\/ruby\/restarting-passenger-processes\/\">guide to restarting<\/a> a Passenger-backed application.<\/p>\n<h2 id=\"see-also\" >Siehe auch<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.meteor.com\/try\/2\">Official Meteor tutorial<\/a>\u00a0&#8211; skip install steps!<\/li>\n<li><a href=\"https:\/\/www.meteor.com\/learn\">Meteor documentation<\/a><\/li>\n<li><a href=\"https:\/\/book.discovermeteor.com\">Discover Meteor<\/a>\u00a0($) &#8211; an excellent eBook on developing using\u00a0Meteor<\/li>\n<li><a href=\"http:\/\/meteor.futz.net\/\">Meteor demo install on a v6 platform<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Overview Meteor is a web framework written on top of Node.js.\u00a0Meteor hooks into Passenger for seamless process launching and flexible, agile\u00a0scalability. Meteor requires terminal access to use. This guide covers launching Meteor on a v6+ platform. Quickstart PREREQUISITE: follow the MongoDB tutorial to setup MongoDB. Install Meteor\u00a0from the terminal: cd&#8230;<\/p>","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[60],"ht-kb-tag":[],"class_list":["post-8560","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-guides"],"_links":{"self":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/comments?post=8560"}],"version-history":[{"count":1,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8560\/revisions"}],"predecessor-version":[{"id":8561,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8560\/revisions\/8561"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media\/8562"}],"wp:attachment":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media?parent=8560"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-category?post=8560"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=8560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}