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

soajs.deployer

v3.2.8

Published

SOAJS Deployer

Downloads

2

Readme

soajs.deployer

SOAJS deployer runs inside your docker image and helps you deploy from source code and run your application

SOAJS deployer paths:

Path | Description --- | ----- /opt/soajs/soajs.deployer | The location of soajs deployer inside the image | /opt/soajs/soajs.deployer/deployer | The working directory | /opt/soajs/tmp | the temp directory that deployer use while executing |

Environment variables

Source code repository

These environment variables works for Nodejs and Golang

NOTE: if provider is equal to bitbucket then the domain can by bitbucket.org for SaaS or the domain for your enterprise bitbucket installation

ENV Variable | Description | Default | Example --- | ----- | :---: | --- SOAJS_GIT_ACC_INFO | A stringified JSON object | null | '{"token":null,"provider":"bitbucket","owner":"soajs","domain":"bitbucket.org"}' SOAJS_GIT_REPO_INFO | A stringified JSON object | null | '{"repo":"soajs.deployer.example.config","branch":"master","commit":null}'

Golang

The deployment path of golang source code is @[/go/src/REPO] where [REPO] is the value set @ SOAJS_GIT_REPO_INFO

Nodejs

The deployment path of nodejs source code is @[/opt/soajs/node_modules/REPO] where [REPO] is the value set @ SOAJS_GIT_REPO_INFO

ENV Variable | Description | Default | Example --- | ----- | :---: | --- SOAJS_SRV_MEMORY | Controle nodejs max_old_space_size the number of megabytes allowed | null | 4096 SOAJS_SRV_MAIN | The main file for nodejs application | . | app.js

Configuration repository

SOAJS deployer allows you to add a configuration content from a git repository. This repository has a working example [https://github.com/soajs/soajs.deployer.example.config]

if you end up adding your own nginx.con make sure you have teh following [worker_processes 1; daemon off;]

ENV Variable | Description | Default | Example --- | ----- | :---: | --- SOAJS_ENV | The environment where you are deploying | dev | SOAJS_CONFIG_ACC_INFO | A stringified JSON object | null | '{"token":null,"provider":"github","owner":"soajs","domain":"github.com"}' SOAJS_CONFIG_REPO_INFO | A stringified JSON object | null | '{"repo":"soajs.deployer.example.config","branch":"master","commit":null}'

NGINX

The configuration path of nginx is /etc/nginx/, if you have a custom location you can set the SOAJS_NX_LOC

The certificates path is /opt/soajs/certificates/ where you will find [dhparam.pem fullchain.pem privkey.pem]

Please note that there is no need to do any configuration regarding SSL, it is done automatically when you set SOAJS_SSL_CONFIG

ENV Variable | Description | Default | Example --- | ----- | :---: | --- SOAJS_GATEWAY_CONFIG | A stringified JSON object. domainPrefix only needed for dashboard env to update the console UI configuration with SOAJS_EXTKEY | null | '{"ip":"","port":"4000","domain:"api.mydomain.com","domainPrefix":"api"}' SOAJS_SITES_CONFIG | A stringified JSON object | null | '["git":{"token":null,"provider":"bitbucket","owner":"soajs","domain":"bitbucket.org","repo":"soajs.deployer.example.config","branch":"master","commit":null},"conf":{"domains:["www.mydomain.com", "mydomain.com"],"folder":"/"}]' SOAJS_SSL_CONFIG | A stringified JSON object. domains is an array of extra domains to create SSL certifications for | null | '{"email":"[email protected]","redirect":true,domains":["www.d1.com","www.d2.com"]}' SOAJS_NX_LOC | Do not set this if you do not know what you are doing | /etc/nginx/ | SOAJS_SSL_SECRET | set this to true if you want to use secret to handle ssl, you must get a certificate and add these files fullchain-crt and private-key | not set | location /opt/soajs/certificates/secret/ | SOAJS_NX_API_DOMAIN_PREFIX | to deploy console ui as standalone | not set |

NGINX Console binary

ENV Variable | Description | Default | Example --- | ----- | :---: | --- SOAJS_GATEWAY_CONFIG | A stringified JSON object. domainPrefix only needed for dashboard env to update the console UI configuration with SOAJS_EXTKEY | null | '{"ip":"","port":"4000","domain:"api.mydomain.com","domainPrefix":"api"}' SOAJS_NX_SITE_DOMAIN | The domain for soajs console in case the binary image is used | null | SOAJS_SSL_CONFIG | A stringified JSON object. domains is an array of extra domains to create SSL certifications for | null | '{"email":"[email protected]","redirect":true,domains":["www.d1.com","www.d2.com"]}' SOAJS_EXTKEY | The tenant external key to use | null | SOAJS_NX_SITE_FOLDER | used to point to a build folder | null | '/build/'

SOAJS

ENV Variable | Description | Default | Example --- | ----- | :---: | --- SOAJS_ENV | The environment where you are deploying | dev | dev SOAJS_PROFILE_LOC | The profile location. this is needed when you deploy a soajs service | /opt/soajs/profiles/ | SOAJS_REGISTRY_API | Where is the gateway of this env to fetch registry from. this is needed when you deploy a service behind SOAJS Gateway | BLANK | "192.168.5.1:5000" SOAJS_DEPLOYER_TYPE | To restrict only a type to be allowed | |

License

Copyright SOAJS All Rights Reserved.

Use of this source code is governed by an Apache license that can be found in the LICENSE file at the root of this repository.