sbt-heroku | An sbt plugin for deploying Heroku Scala applications | Platform As A Service library
kandi X-RAY | sbt-heroku Summary
kandi X-RAY | sbt-heroku Summary
This plugin is used to deploy Scala and Play applications directly to Heroku without pushing to a Git repository. This is can be useful when deploying from a CI server.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sbt-heroku
sbt-heroku Key Features
sbt-heroku Examples and Code Snippets
Community Discussions
Trending Discussions on sbt-heroku
QUESTION
I have a ConfigLoader which I'm pretty sure works fine. I suspect I am not using application.conf file correctly or perhaps my directory containing the prd.env and dev.env is not in the correct place.
What I expect to happen:
I when I enter sbt run
the ConfigLoader reads the application.conf file, sees there are variables within that file. Then checks if prd.env or dev.env depending on which environment it is in and then finally loads the variables. I want this so I can have a different database for dev and prd.
- I have not idea how it would find the Meta directory which contains the prd.env and dev.env (see image).
- I have no idea how it would be able to tell whether if the environment is in dev or prd.
- The goal is to now look towards deploying this app, which is why I need these environment variables to work.
I really appreciate all the help but please try and detail your answers because I am really stuck and short answers often assume I know more than I do. Thanks :)
Tech stack incase relevant:
- HTTP4S,
- CATS,
- Doobie,
- PostgreSQL
application.conf file below:
...ANSWER
Answered 2021-Jan-16 at 16:34When running via sbt run
, the environment is set by the shell in which you're running sbt. Defining a dev.env
file by itself does nothing.
The mechanism for setting the environment in which sbt is running will vary depending on your shell.
For example if bash is your shell (this is worth trying in other Bourne-compatible shells), prefixing the environment variables with export
, e.g.:
QUESTION
I am trying to deploy a Scala HTTP4S app to Heroku.
...ANSWER
Answered 2020-Sep-24 at 14:16Your app will try to listen on port 8080.
You can replace the port on line 33 of your YourServerNameServer.scala from 8080 to sys.env("PORT").toInt
QUESTION
I have a microservice written in Scala that primarily runs scheduled jobs. It's not a play app. The main function just sets up the scheduled jobs. For example
...ANSWER
Answered 2017-Nov-08 at 16:50Your Procfile
should use worker:
instead of web:
. For example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sbt-heroku
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page