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

@veho-tech/deploy-meteor

v1.0.5

Published

small Node app for (re)configuring a Meteor deployment with pm2

Downloads

3

Readme

deploy-meteor

This is a simple command line Node app that helps you deploy/update a Meteor application.

Prerequisites

You need to install pm2 globally and have the server tarball, that meteor build creates, extracted already.

Also, we assume that you have your Meteor settings stored inside your Meteor app's assets. (You might want to check out git-crypt if you have sensitive information in your settings file.)

Installation

npm i -g @veho-tech/deploy-meteor

Usage

Assuming you have the following setup:

  • extracted server tarball in /home/my-fancy-app/bundle

  • an existing/prefilled pm2 config file in /home/my-fancy-app/pm2-config.json with a content looking like this:

    {
        "name": "my-fancy-app",
        "env": {
            "PORT": 3000,
            "HTTP_FORWARDED_COUNT": 1,
            "MONGO_URL": "mongodb://localhost:27017/my_fancy_app?replicaSet=rs0",
            "MONGO_OPLOG_URL": "mongodb://localhost:27017/local?replicaSet=rs0&authSource=my_fancy_app",
            "ROOT_URL": "https://my-fancy-app.com",
            "MAIL_URL": "smtp://bot%40my-fancy-app.com:[email protected]:587"
        }
    }
  • your settings file is located inside your Meteor project at private/settings.json

    {
      "AWSAccessKeyId": "test",
      "AWSSecretAccessKey": "test",
      "AWSBucket": "test",
      "AWSRegion": "test"
    }

If you then run

npm i -g @veho-tech/deploy-meteor
deploy-meteor --config=/home/my-fancy-app/pm2-config.json --settings=settings.json /home/my-fancy-app/bundle

your config file /home/my-fancy-app/pm2-config.json will be updated like this:

{
    "name": "my-fancy-app",
    "cwd": "/home/my-fancy-app/bundle",
    "script": "main.js",
    "env": {
        "PORT": 3000,
        "HTTP_FORWARDED_COUNT": 1,
        "MONGO_URL": "mongodb://localhost:27017/my_fancy_app?replicaSet=rs0",
        "MONGO_OPLOG_URL": "mongodb://localhost:27017/local?replicaSet=rs0&authSource=my_fancy_app",
        "ROOT_URL": "https://my-fancy-app.com",
        "MAIL_URL": "smtp://bot%40my-fancy-app.com:[email protected]:587",
        "METEOR_SETTINGS": "{\"AWSAccessKeyId\":\"test\",\"AWSSecretAccessKey\":\"test\",\"AWSBucket\":\"test\",\"AWSRegion\":\"test\"}"
    }
}

Options

  • `--

License

MIT