All Projects → heroku → heroku-cli-deploy

heroku / heroku-cli-deploy

Licence: ISC license
No description or website provided.

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to heroku-cli-deploy

heroku-local
this code is now in https://github.com/heroku/cli
Stars: ✭ 21 (-8.7%)
Mutual labels:  heroku, heroku-cli-plugin
heroku-cli-oauth
this code is now in https://github.com/heroku/cli
Stars: ✭ 40 (+73.91%)
Mutual labels:  heroku, heroku-cli-plugin
heroku-postico
Heroku Postgres connection tool for Postico
Stars: ✭ 37 (+60.87%)
Mutual labels:  heroku, heroku-cli-plugin
heroku-slugs
CLI Plugin to manage downloading of slugs
Stars: ✭ 36 (+56.52%)
Mutual labels:  heroku, heroku-cli-plugin
bdapis
Rest API service. Build with NodeJS, Express, MongoDB
Stars: ✭ 65 (+182.61%)
Mutual labels:  heroku
Marketplace-App
Find Spelling errors in files within PRs
Stars: ✭ 47 (+104.35%)
Mutual labels:  heroku
nine-cards-backend
An Open Source Android Launcher built with Scala on Android
Stars: ✭ 61 (+165.22%)
Mutual labels:  heroku
five-minute-midas
Predicting Profitable Day Trading Positions using Decision Tree Classifiers. scikit-learn | Flask | SQLite3 | pandas | MLflow | Heroku | Streamlit
Stars: ✭ 41 (+78.26%)
Mutual labels:  heroku
img ai app boilerplate
An image classification app boilerplate to serve your deep learning models asap!
Stars: ✭ 27 (+17.39%)
Mutual labels:  heroku
ecars
Sample application for Lightning Web Components and Salesforce Platform runtime and compute capabilities. Part of the sample gallery. Electric car manufacturer use case. Get inspired and learn best practices.
Stars: ✭ 132 (+473.91%)
Mutual labels:  heroku
craft-heroku
🍄 Craft 3, ready for continuous deployment to Heroku.
Stars: ✭ 16 (-30.43%)
Mutual labels:  heroku
middleman-startae
A starter template ready to run on Netlify or Heroku. Comes with several helpers, partials and a nice basic structure to the HTML, Sass, Webpack and ES2015. Bottom line, a template that uses all the modern tools.
Stars: ✭ 43 (+86.96%)
Mutual labels:  heroku
link-preview-api
Backed to provide information for link-prevue vue component
Stars: ✭ 31 (+34.78%)
Mutual labels:  heroku
phx-auth-api
Authentication for Phoenix with JWT, user privileges and CI
Stars: ✭ 13 (-43.48%)
Mutual labels:  heroku
NatsukiMusic
Free and Open Source Channel/Group Voice chat music player for telegram ❤️ with button support, deezer and saavn playback support @ItzSadew
Stars: ✭ 23 (+0%)
Mutual labels:  heroku
SPaaS
A Simple-PaaS similar to Heroku
Stars: ✭ 18 (-21.74%)
Mutual labels:  heroku
WordNook
Dynamically updating blogging website to upload articles and blog posts on various topics, developed using ejs template engine and node js in the backend.
Stars: ✭ 80 (+247.83%)
Mutual labels:  heroku
tube2gif
Search and Generate Gif from Youtube
Stars: ✭ 21 (-8.7%)
Mutual labels:  heroku
phoenix example
An example Phoenix app with one-click deployments to different cloud services.
Stars: ✭ 62 (+169.57%)
Mutual labels:  heroku
keycloak-heroku
Deploy Keycloak to Heroku using a slightly adapted version of the official docker image
Stars: ✭ 47 (+104.35%)
Mutual labels:  heroku

Heroku Deploy War/Jar Build Status CircleCI

This project is a Heroku CLI plugin for deploying WAR files. It can also be used to deploy executable JAR files.

If you are using Maven, see the Heroku Maven plugin, which is a more robust method of WAR and JAR file deployment.

Prerequisites

You will require the following:

Getting started

1. Make sure Java 7 or higher is installed

Run the following command to confirm:

$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

2. Install the heroku-deploy CLI plugin

Use the following command to install the heroku-deploy plugin:

$ heroku plugins:install heroku-cli-deploy

3. Create a Heroku application

Use the following command to create a new application on Heroku

$ heroku create

4. Create a WAR file

You can use any method to generate a WAR file. You can use maven,ant or simply export your application from your IDE as a WAR file.

The only requirement is that the WAR file is a standard Java web application and adheres to the standard web application structure and conventions.

5. Deploy your WAR

In order to deploy your WAR use the following command:

$ heroku war:deploy <path_to_war_file> --app <app_name>
Uploading my-app.war....
---> Packaging application...
    - app: my-app
    - including: webapp-runner.jar
    - including: my-app.war
---> Creating build...
    - file: slug.tgz
    - size: 1MB
---> Uploading build...
    - success
---> Deploying...
remote:
remote: -----> Fetching custom tar buildpack... done
remote: -----> JVM Common app detected
remote: -----> Installing OpenJDK 1.8... done
remote: -----> Discovering process types
remote:        Procfile declares types -> web
remote:
remote: -----> Compressing... done, 50.3MB
remote: -----> Launching... done, v5
remote:        https://my-app.herokuapp.com/ deployed to Heroku
remote:
---> Done

If you are in an application directory, you can use the following command instead:

heroku deploy:war <path_to_war_file>

6. View your app on Heroku

Use the following command to open the application on the browser:

heroku open

You can learn how to customize the deploy (such as including files and setting Tomcat options) in Configuring WAR Deployment with the Heroku Toolbelt.

Executable JAR Files

You can also use this tool to deploy executable JAR files. To do so, run a command like this:

$ heroku deploy:jar <path_to_jar> --app <appname>

Available options include:

 -j, --jar FILE         # jar or war to deploy
 -v, --jdk VERSION      # 7 or 8. defaults to 8
 -o, --options OPTS     # options passed to the jar file
 -i, --includes FILES   # list of files to include in the slug

Customizing your deployment

You can customize the command used to run your application by creating a Procfile in the same directory as your run the heroku deploy:jar command. For example:

web: java -cp my-uberjar.jar com.foo.MyMain opt1 opt2

You can view your current Procfile command by running heroku ps.

Running locally

You can run your WAR file locally the way it is run on Heroku by executing this command:

$ heroku war:run <path_to_war>

Development

To run the tests:

$ bash bin/test

To update the heroku-deploy-complete.jar:

$ bash update.sh <version>

For a list of versions see Maven Central.

To publish this plugin:

$ npm version <version>
$ npm publish
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].