Giter Site home page Giter Site logo

heroku-finagle-rogue's Introduction

Heroku Finagle Rogue App

This is a minimal Scala app targeting deployment to Heroku.
Its web layer is based on Finagle and its persistence layer on Rogue.
Basically, this app's a RESTful service API.

Dev

The app's persistence layer depends on MongoDB, so start it:

$ mongod

Additionally, Memcached is being used, so e.g.:

$ memcached -vv

To run the app locally via foreman:

$ gem install foreman
$ foreman start

Then point your browser to this URL:

http://localhost:5000/

Note: you need to build before (see below).

To compile + package Scala on-the-fly
via sbt 0.10:

$ sbt
> ~package

For compiling/packaging once just leave off the ~.

To make an assembly of all sbt project lib dependencies:

$ sbt
> assembly:package-dependency

Deploy

$ gem install heroku
$ heroku create --stack cedar
$ heroku addons:add mongolab
$ heroku config

Now, adjust src/main/resources/props/production.default.props according to MONGOLAB_URI.
Plus, rebuild application.jar (via sbt package) to include this config update.

$ heroku config:add LIFT_PROD=-Drun.mode=production
$ git commit -am 'Make it ready for production.'
$ git push heroku master

Then, make the project's lib dependencies JAR (via sbt assembly:package-dependency).

$ git commit -am 'Add lib dependencies.'
$ git push heroku master
$ heroku open

heroku-finagle-rogue's People

Contributors

robi42 avatar

Stargazers

Zhang Huan avatar Nguyen Duong avatar  avatar Rodrigo Lazoti avatar Peter Robinett avatar  avatar Todor Todorov avatar Alexey Rosolovskiy avatar ducky avatar  avatar Takuya Nagasaka avatar Justin Miller avatar Stone Gao avatar  avatar Julio Capote avatar Benny Wong avatar

Watchers

 avatar James Cloos avatar Disheng Su avatar

heroku-finagle-rogue's Issues

SBT Assembly not recognized

Hi,

I'm on OSX and I get the following errors. I haven't been able to debug from reading the sbt assembly docs. Would you know what's wrong?

$ sbt
[info] Loading project definition from ..../heroku-finagle-rogue/project
[info] Updating {file:..../heroku-finagle-rogue/project/}heroku-finagle-rogue-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
..../heroku-finagle-rogue/build.sbt:29: error: not found: value sbtassembly
seq(sbtassembly.Plugin.assemblySettings: _*)
^
[error] Type error in expression

For your information

$ sbt --version
sbt launcher version 0.13.7
$ scalac -version
Scala compiler version 2.11.4 -- Copyright 2002-2013, LAMP/EPFL

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.