1.0.6 • Published 8 years ago

packer-server v1.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

packer-server

  • Static File Server for the app files
  • clones the desired repository in the desired branch
  • listens for pushes to the branch (see git-spy and github-webhook-forwarding)
  • pulls the latests changes from the branch every time there is a push
  • more (TODO: document it)

Installation

$ npm i -g packer-server

Usage:

See configure and launch your service in vigour-config for information on how to configure and launch the packer-server and where to get more info for all the configuration options.

npm start

As a minimum, you must set the following configuration options:

  • repo (MAIL_MAN_REPO)
  • branch (MAIL_MAN_BRANCH)
  • gwfURL (GIT_SPY_GWF_URL)
  • gwfUser (GIT_SPY_GWF_USER)
  • gwfPass (GIT_SPY_GWF_PASS)

If serving an app found in a private repository, make sure you have the permissions to access it via the git command (this is what packer-server uses internally).

You will probably also want to set the following unless you're just launching a single packer locally for testing.

  • port (PACKER_SERVER_PORT)
  • gitSpyPort (GIT_SPY_PORT)

Other options are available (see the package)

npm test

Some of the tests will launch a real packer, which will try to subscribe to a github-webhook-forwarding service and need its URL and proper credentials. credentials we don't want to put in the repo. Please set the following environment variables instead:

  • GWF_TEST_OWNER
  • GWF_TEST_USER
  • GWF_TEST_PASS
  • GWF_TEST_PORT (optional, default: 8000)

example:

$ export GWF_TEST_OWNER=vigour
$ export GWF_TEST_USER=vigourbot
$ export GWF_TEST_PASS=OMGthisissoooooosecret

how it works:

  • mail-man clones the specified branch of the specified repo in the directory where you launched packer-server.
  • git-spy subscribes to the repo and branch on the github-webhook-forwarding process reachable via gwfURL, which registers a WebHook on GitHub to listen for pushes.
  • packer-server serves the files found at dist/<platform> of the cloned repo, where <platform> is selected by looking at the request's User-Agent header.
  • When a push is made to the specified repo and branch, the packer will pull and serve the new version automatically.
1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

0.1.50

8 years ago

0.1.49

8 years ago

0.1.48

8 years ago

0.1.47

8 years ago

0.1.46

8 years ago

0.1.45

8 years ago

0.1.44

8 years ago

0.1.43

8 years ago

0.1.42

8 years ago

0.1.41

8 years ago

0.1.40

8 years ago

0.1.39

8 years ago

0.1.37

8 years ago

0.1.36

8 years ago

0.1.35

8 years ago

0.1.34

8 years ago

0.1.33

8 years ago

0.1.32

8 years ago

0.1.31

8 years ago

0.1.30

8 years ago

0.1.29

8 years ago

0.1.28

8 years ago

0.1.27

8 years ago

0.1.26

8 years ago

0.1.25

8 years ago

0.1.24

8 years ago

0.1.23

8 years ago

0.1.22

8 years ago

0.1.21

8 years ago

0.1.20

8 years ago

0.1.19

8 years ago

0.1.18

8 years ago

0.1.17

8 years ago

0.1.16

8 years ago

0.1.15

8 years ago

0.1.14

8 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

1.0.0-0

8 years ago