1.0.6 • Published 9 years ago

packer-server v1.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
9 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

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

0.1.50

9 years ago

0.1.49

9 years ago

0.1.48

9 years ago

0.1.47

9 years ago

0.1.46

9 years ago

0.1.45

9 years ago

0.1.44

9 years ago

0.1.43

9 years ago

0.1.42

9 years ago

0.1.41

9 years ago

0.1.40

9 years ago

0.1.39

9 years ago

0.1.37

9 years ago

0.1.36

9 years ago

0.1.35

9 years ago

0.1.34

9 years ago

0.1.33

9 years ago

0.1.32

9 years ago

0.1.31

9 years ago

0.1.30

9 years ago

0.1.29

9 years ago

0.1.28

9 years ago

0.1.27

9 years ago

0.1.26

9 years ago

0.1.25

9 years ago

0.1.24

9 years ago

0.1.23

9 years ago

0.1.22

9 years ago

0.1.21

9 years ago

0.1.20

9 years ago

0.1.19

9 years ago

0.1.18

9 years ago

0.1.17

9 years ago

0.1.16

9 years ago

0.1.15

9 years ago

0.1.14

9 years ago

0.1.13

9 years ago

0.1.12

9 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.0

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

1.0.0-0

10 years ago