heroku-deploy | simple github action | Continuous Deployment library

 by   AkhileshNS JavaScript Version: v3.12.14 License: MIT

kandi X-RAY | heroku-deploy Summary

kandi X-RAY | heroku-deploy Summary

heroku-deploy is a JavaScript library typically used in Devops, Continuous Deployment, Nodejs, Express.js applications. heroku-deploy has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

This is a very simple GitHub action that allows you to deploy to Heroku. The action works by running the following commands in shell via NodeJS:-.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              heroku-deploy has a medium active ecosystem.
              It has 923 star(s) with 251 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 50 open issues and 74 have been closed. On average issues are closed in 13 days. There are 22 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of heroku-deploy is v3.12.14

            kandi-Quality Quality

              heroku-deploy has 0 bugs and 0 code smells.

            kandi-Security Security

              heroku-deploy has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              heroku-deploy code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              heroku-deploy is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              heroku-deploy releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              heroku-deploy saves you 10 person hours of effort in developing the same functionality from scratch.
              It has 30 lines of code, 5 functions and 8 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of heroku-deploy
            Get all kandi verified functions for this library.

            heroku-deploy Key Features

            No Key Features are available at this moment for heroku-deploy.

            heroku-deploy Examples and Code Snippets

            No Code Snippets are available at this moment for heroku-deploy.

            Community Discussions

            QUESTION

            heroku deployment with ci/cd
            Asked 2021-Dec-23 at 10:40

            I am trying to build a CI/CD pipeline with github actions in order to build and deploy my app to heroku. I used following YAML file. But it shows error in github action. Could anyone please help me to solve this problem. My reository is bigshopcicd.My project structure is bigshop |-backend |-frontend |-package.json
            Error-

            ...

            ANSWER

            Answered 2021-Dec-23 at 10:40

            Your npm install command runs the install in your root package.json which doesn't contain react dependencies. Then the build step goes into ./frontend and tries to use those react script that were'nt fetched.

            You could use npm's preinstall target to install the frontend dependencies.

            Also try to see if it is possible to split the project into two different ones because this structure seem fragile and you actually loose the advantages of having a separate backend/frontend. ( plus your scripts get overly complicated )

            EDIT:
            Preinstall isn't specifically made for installing node modules, it is simply a step you can add to your package.json which will be run by npm before the install step, it can contain arbitrary script commands. In your case maybe try :

            Source https://stackoverflow.com/questions/70459512

            QUESTION

            Github actions - CI is stuck because of build artifacts (to convert typescript to javascript)
            Asked 2021-Nov-18 at 03:43

            I'm trying to convert my typescript files to javascript files on my github actions pipeline. I am using Node.js/Express.js with typescript.

            Problem

            The CI is stuck at step "install dependencies & convert typescript to javascript". It looks like it works since I can see the console.log() , but the CI will not finish. Why is that?

            Here is my package.json:

            npm run convert converts typescript to javascript files into the backend-build folder. The backend-build folder contains the js file after conversion. The backend-build folder is not tracked in the repository because they are compiled files from npm run convert (i.e an Artifact).

            I run it whenever I start my server.

            ...

            ANSWER

            Answered 2021-Nov-18 at 03:43

            The job is staying "open" because of the -w (watch) directive. You don't want to use watch on your CI jobs unless you're also doing something to kill the watched process.

            The errors suggest that your paths aren't correct so it's trying to run tsc -w, and then failing to find anything in the given path (./gh_actions_heroku_backend/gh_actions_heroku_backend) and then staying "open" because of the watch directive.

            Source https://stackoverflow.com/questions/70014257

            QUESTION

            App crashing right away after deploy from Github Actions
            Asked 2021-Oct-21 at 18:58

            Well, I have pushed my TypeScript project to github, and it has these scripts:

            ...

            ANSWER

            Answered 2021-Oct-21 at 18:58

            As Bertrand said, there was something wrong with the mongodb connection, so I just found that the variable MONGODB_URL was not set, only the test one was, so it was making the app crash because it was undefined for mongoose, making it exit.

            Source https://stackoverflow.com/questions/69652732

            QUESTION

            ReferenceError: TextEncoder is not defined in Github Actions Jest Script
            Asked 2021-Oct-15 at 17:13

            I have an error that's only happening in my Github Actions workflow (when I run my Jest script locally, it's fine). I've only found this SO answer and this one but error still persists. Any thoughts on what to check next?

            Here's the error:

            ...

            ANSWER

            Answered 2021-Oct-15 at 17:13

            I had the same problem and a just inserted the two lines at the top

            global.TextEncoder = require("util").TextEncoder;

            global.TextDecoder = require("util").TextDecoder;

            reference: ReferenceError: TextEncoder is not defined with mongodb nodes

            Source https://stackoverflow.com/questions/69578860

            QUESTION

            Why are both github workflows running when they are configured to only run on their respective branches?
            Asked 2021-Aug-11 at 16:06

            I have two workflows, develop.yml and production.yml.

            develop is configured to run on develop:

            ...

            ANSWER

            Answered 2021-Aug-11 at 16:06

            your configuration effectively says 'run on all pushes, only allow manual dispatch on a particular branch' (though the latter isn't an option it seems).

            You probably mean:

            develop.yml

            Source https://stackoverflow.com/questions/68745429

            QUESTION

            nuxt/pwa not working "offline" when deployed to heroku
            Asked 2021-May-04 at 14:36

            I am using Nuxt in ssr: false mode and deploying my app to heroku following this guide.

            Now I am using nuxt/pwa module which works perfectly fine when testing my app via npm run build && npm run start (production mode).

            Also I noted this comment from the nuxt/pwa docu:

            NOTE: If using ssr: false with production mode without nuxt generate, you have to use modules instead of buildModules

            which I configured correctly so my nuxt.config.js file looks like this:

            ...

            ANSWER

            Answered 2021-May-04 at 14:34

            I'm not sure on how to configure it, but I know that the package itself do not allow a full offline mode by default. Looking at the documentation, it looks like Workbox is doing exactly that. It should be pretty easy to setup and enable a full service-worker + cached pages thanks to it IMO.

            https://pwa.nuxtjs.org/workbox

            It looks like the starting point is: yarn add @nuxtjs/workbox, then fine tuning the configuration!

            PS: the rest of your configuration looks nice to me!

            Source https://stackoverflow.com/questions/67386629

            QUESTION

            Heroku Executable Jar App Crashing After a Few Seconds
            Asked 2020-May-10 at 05:20

            I'm attempting to run a Java Discord bot which I've compiled into an executable jar on Heroku. When running this jar on my machine, it runs continuously without crashing. As per the Heroku instructions for deploying an executable jar via CLI, I've run the command line commands:

            ...

            ANSWER

            Answered 2020-May-10 at 05:20

            You have given not much info what you are actually doing in your app, so I‘m guessing.

            Could it be that you are not binding to the web port and use a webworker?

            From the docs

            Web dynos A web dyno must bind to its assigned $PORT within 60 seconds of startup. If it doesn’t, it is terminated by the dyno manager and a R10 Boot Timeout error is logged. Processes can bind to other ports before and after binding to $PORT.

            https://devcenter.heroku.com/articles/dynos#web-dynos

            Source https://stackoverflow.com/questions/61704682

            QUESTION

            Deploy war file to heroku including additional files
            Asked 2020-May-04 at 12:10

            I am deploying a war file to heroku and want to include additional properties file to the slug as described here:

            Configuring WAR Deployment with the Heroku CLI

            ...

            ANSWER

            Answered 2020-May-04 at 12:10

            Those files will be added to the root of your Heroku application and won't be put into the expanded application directory.

            You can verify your file is present in your Dynos by running heroku run "cat app1.properties". If you want to explore the file system yourself, heroku run bash allows you to delve though it.

            Edit: If you need a path to the file, you can construct one using

            Source https://stackoverflow.com/questions/61532148

            QUESTION

            Heroku docker spring boot image error 503 H14
            Asked 2020-Apr-11 at 10:02

            I few days ago I was trying to deploy a docker image of a spring boot app into heroku.

            I have the following docker file:

            ...

            ANSWER

            Answered 2020-Mar-12 at 12:09

            In your Procfile or your heroku.yml you have not specified a web worker.

            Source https://stackoverflow.com/questions/60570977

            QUESTION

            SMTP-Sendgrid Email in Django app: working locally, on Heroku error SMTPServerDisconnected
            Asked 2020-Feb-23 at 11:34

            On the Heroku-deployed version of my app, when testing the password reset function, I get the error SMTPServerDisconnected at /accounts/password/reset/ please run connect() first, this reset functionality works perfectly fine on the local version of my app - I receive the mails from sendgrid without any problems and the app behaves as expected:

            my email settings are:

            ...

            ANSWER

            Answered 2020-Feb-23 at 11:34

            Ok, I figured it out. Anyone having the same issue, here the solution that worked for me: 1.) Make sure you have the heroku sendgrid addon actually installed. You can install the free tier via the command line:

            Source https://stackoverflow.com/questions/60354641

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install heroku-deploy

            To get started using the action, just make sure to have a Procfile or a Dockerfile in your project and then create a folder called .github and inside it, create another folder called workflows. Finally inside the workflows folder, create a file called main.yml with the following contents:. Now go to your Heroku account and go to Account Settings. Scroll to the bottom until you see API Key. Copy this key and go to your project's repository on GitHub. In your Repo, go to Settings -> Secrets and click on "New Secret". Then enter HEROKU_API_KEY as the name and paste the copied API Key as the value. You can now push your project to GitHub and it will be automatically deployed to Heroku henceforth.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/AkhileshNS/heroku-deploy.git

          • CLI

            gh repo clone AkhileshNS/heroku-deploy

          • sshUrl

            git@github.com:AkhileshNS/heroku-deploy.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link