Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Latest commit

 

History

History
61 lines (33 loc) · 1.15 KB

README.markdown

File metadata and controls

61 lines (33 loc) · 1.15 KB

finatra_example

Finatra requires either maven or sbt to build and run your app.

The .env file is used to configure Heroku environment variables locally. See heroku's docs for more information. Do not check it into source control!.

SBT Instructions

Runs your app on port 7070

sbt run

Testing

sbt test

Packaging

sbt stage

Maven Instructions

Runs your app on port 7070

mvn scala:run

Testing

mvn test

Packaging (fatjar)

mvn package

Heroku

Install heroku toolbelt.

You may also need to install foreman:

gem install foreman

To put on heroku

heroku login
git init
heroku create --buildpack https://github.com/heroku/heroku-buildpack-scala.git
heroku config:set ENV=production
git add .
git commit -am "Initial commit"
git push heroku master

To run locally like it does on heroku

foreman start web

To run anywhere else

./target/universal/stage/bin/<appname>