1space.net
域名年龄: 20年4个月1天HTTP/1.1 200 OK 访问时间:2017年01月03日 07:20:56 类型:text/html;charset=UTF-8 设置Cookie:JSESSIONID=139sdu8v1fkle6k28lsxbn6n0;Path=/ 过期时间:1970年01月01日 08:00:00 服务器:Jetty(7.6.19.v20160209) 代理服务器:1.1 vegur 网站编码:UTF-8
Hello 99Embedded Jetty Templateby herokuYour app is ready!Get started with Embedded JettyThis is a template for a web application that uses embedded Jetty. The sample code consists of a JSP (this page) and a simple servlet. Take a look around and then use Eclipse or the Command Line to deploy some changes.Using Eclipse 3.7Using Command LineUsing Eclipse 3.7:Step 1. Setup your environmentEnsure EGit is installed.Ensure the Maven Eclipse Plugin is installed.Create an SSH key if you haven't already:Go to Window Preferences General Network Connections SSH2Choose the Key Management tabClick Generate RSA Key...×Generate RSA KeyCopy the generated public key in the text box and add it to your accountClick Save Private Key..., accepting the defaultsClick OkStep 2. Clone the AppGo to File Import... Git Projects from Git×ImportChoose URI and click NextEnter git@heroku.com:.git in the URI field.×Clone Git RepositoryClick Next three timesClick Yes to the question of authenticity if the question appears.Choose Import as general project × Import Projects from Git Click Finish Step 3. Configure the App Right-click the project root Choose Configure Convert to Maven Project Step 4. Makes some changes to the app Open HelloServlet.java Modify line 20 with: out.write("Deployed first change!".getBytes()); Step 5. Deploy to Heroku Right-click the project root and choose Team Commit Enter a commit message and click Commit × Commit Changes Right-click the project root and choose Team Push to Upstream Review the push results. At the bottom, a "... deployed to Heroku" message will appear. × Push Results Done! You've just cloned, modified, and deployed a brand new app. See your changes Learn more at the Heroku Dev Center Using Command Line: Step 1. Setup your environment Install the Heroku Toolbelt. Install Maven. Step 2. Login to Heroku heroku login Be sure to create, or associate an SSH key with your account. $ heroku login Enter your Heroku credentials. Email: naaman@heroku.com Password: Could not find an existing public key. Would you like to generate one? [Yn] Y Generating new SSH public key. Uploading SSH public key /Users/Administrator/.ssh/id_rsa.pub Authentication successful. Step 3. Clone the App git clone -o heroku git@heroku.com:.git Step 4. Makes some changes to the app Open src/main/java/com/example/HelloServlet.java with your favorite editor Modify line 20 with: out.write("Deployed first change!".getBytes()); Step 5. Make sure the app still compiles mvn clean package Step 6. Deploy your changes git commit -am "New changes to deploy" git push heroku master Done! You've just cloned, modified, and deployed a brand new app. See your changes Learn more at the Heroku Dev Center
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2024-09-09 22:52, Process in 0.0037 second.