Git Product home page Git Product logo

spray-template-heroku's Introduction

Dependencies

  • Requires sbt 0.11.1 to build.

How to run

Clone this repository, then run the application in one of the following ways.

  • Locally using sbt

      $ sbt clean compile run
      ...
      [success] Total time: 14 s, completed Jan 11, 2012 10:22:02 PM
      [info] Running cc.spray.examples.spraycan.Boot 
      01/11 22:22:03 INFO [run-main] c.s.c.HttpServer - Starting spray-can HTTP server on /0.0.0.0:8080
      01/11 22:22:03 INFO [akka:event-driven:dispatcher:event:handler-1] a.e.s.Slf4jEventHandler - 
            [cc.spray.HttpService]
            [HTTP Service started]
      01/11 22:22:03 INFO [akka:event-driven:dispatcher:event:handler-5] a.e.s.Slf4jEventHandler - 
            [cc.spray.SprayCanRootService]
            [spray RootService started]
    
  • Locally using foreman (simulates Heroku)

      $ sbt clean compile stage
      ...
      [success] Total time: 14 s, completed Jan 11, 2012 10:23:31 PM
      [info] Wrote start script for mainClass := Some(cc.spray.examples.spraycan.Boot) to /home/laufer/Work/GitHub/spray-template-heroku/target/start
      [success] Total time: 0 s, completed Jan 11, 2012 10:23:31 PM
    
      $ foreman start
      22:24:17 web.1     | started with pid 25464
      22:24:18 web.1     | 01/11 22:24:18 INFO [main] c.s.c.HttpServer - Starting spray-can HTTP server on /0.0.0.0:5000
      22:24:18 web.1     | 01/11 22:24:18 INFO [akka:event-driven:dispatcher:event:handler-4] a.e.s.Slf4jEventHandler - 
      22:24:18 web.1     | 	   [cc.spray.HttpService]
      22:24:18 web.1     | 	   [HTTP Service started]
      22:24:19 web.1     | 01/11 22:24:19 INFO [akka:event-driven:dispatcher:event:handler-6] a.e.s.Slf4jEventHandler - 
      22:24:19 web.1     | 	   [cc.spray.SprayCanRootService]
      22:24:19 web.1     | 	   [spray RootService started]
    
  • On Heroku

    These instructions should work out of the box. The last few lines of the output should look like this.

             [success] Total time: 0 s, completed Jan 12, 2012 4:31:05 AM
      -----> Discovering process types
             Procfile declares types -> web
      -----> Compiled slug size is 37.1MB
      -----> Launching... done, v5
             http://quiet-samurai-5737.herokuapp.com deployed to Heroku
      
      To [email protected]:quiet-samurai-5737.git
       * [new branch]      master -> master
    

    Now you can connect to the app URL http://quiet-samurai-5737.herokuapp.com on port 80. There is an internal port that varies across invocations of the app, but the app is always exposed on port 80.

spray-template-heroku's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.