npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@renderinc/heroku-import

v4.0.2

Published

Heroku CLI plugin to migrate a Heroku app, PostgreSQL DB, and Redis to Render

Downloads

48

Readme

heroku-import

Heroku CLI plugin to migrate a Heroku app, PostgreSQL DB, and Redis to Render

oclif Version Downloads/week License

This plugin helps you migrate your apps and databases from Heroku to Render. It will perform the following steps.

  1. Gather information about the specified Heroku app
  2. Create a render.yaml and Dockerfile.render describing your app and database deployment in a format compatible with Render.
  3. Give you instructions for how to use the generated render.yaml to deploy your service to Render and create PostgreSQL and Redis databases on Render as needed by your app.

Full documentation is available at https://render.com/docs/migrate-from-heroku

Note: This plugin will NOT modify your Heroku app in any way.

Usage

$ heroku plugins:install @renderinc/heroku-import
$ heroku render:import --app salty-waters-73797

=== Gathering information about Heroku app
Verifying Heroku app exists and CLI is logged in... ✔️
Verifying app is using a single, official Heroku buildpack... ✔️
Getting stack image... heroku-20
Getting and translating plan... Heroku Hobby $7/mo --> Render Starter $7/mo
Getting instance count... 1
Getting custom domains... 1 custom domain(s)
Getting environment variables... 7 environment variable(s)
Getting add-ons... 1 add-on(s)

? Select addons to import. postgresql-polished-30455 using hobby-dev plan

Create render.yaml file and Dockerfile.render? This will overwrite any existing files with the same name. (y/n): y
Generating render.yaml file... done
Generating Dockerfile.render... done

=== Environment variables excluded from render.yaml
The following environment variables were not included in the generated
  render.yaml file because they potentially contain secrets. You may need to
  manually add them to your service in the Render Dashboard.

- DATABASE_URL: postgres://user:[email protected]:5432/dbname
- SECRET_KEY_BASE: s3cr3t

=== Follow these steps to complete import of service(s) and database(s) to Render
1. Add, commit, and push the generated render.yaml and Dockerfile.render to GitHub or GitLab.
2. Go to https://dashboard.render.com/select-repo?type=blueprint
3. Search for and select this repository.
4. Verify the plan showing the resources that Render will create, and
   then click 'Create New Resources'.
5. After the resources are deployed, you may need to manually add
   the above environment variables to your Web Service in the Render Dashboard.
   They were not included in the generated render.yaml because they potentially
   contain secrets.
$ heroku render:import --help
Create a Dockerfile and render.yaml from an app deployed to Heroku

USAGE
  $ heroku render:import

OPTIONS
  -a, --app=app  (required) name of Heroku app

DESCRIPTION
  This Heroku CLI plugin gathers information about a deployed Heroku app and
  its add-ons and saves that information in a render.yaml file. It then generates
  a Dockerfile which can be used along with the render.yaml file to deploy the
  app and its PostgreSQL databases and/or Redis instances on Render.

EXAMPLE
  $ heroku render:import --app salty-waters-73797

Development

The Heroku CLI must already be installed.

  1. Clone this repo
  2. cd into it and run heroku plugins:link

Now when you run heroku render:import, it will run the code from this directory on your local machine.