stan 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ddab58e2d2b7e52c03e69bc75f8599b012aeea2
4
- data.tar.gz: 7301bcca851f713cbee175ce44f2fdda32eac4d0
3
+ metadata.gz: e63b08def6870efea7578dfe7418ea72e0eaf132
4
+ data.tar.gz: 102f632f1d462811013b5dc87f8fb4d0cdc69fe5
5
5
  SHA512:
6
- metadata.gz: fdbc2eb87fd2c1f331aa66809e533252c9780ad19a3378e9542ebb0145358c5fee3c92a9e2e47a14ac77f0e3514003530d725c9ea87bf5c1440c8807e409cf74
7
- data.tar.gz: 15de19404ade622aa4cfc42aba47193865c0ded5d5e882a9c4c98a78973e98bc39f53a12b834532d4739479ec49a8c783568a09d36174f24a34d99a80a716764
6
+ metadata.gz: 3af40c780347d34babef63733dcb7dd8af3368dd484b4e6476f3e249d815995693b31445697c3ff52ea19fd93dc7bc1032f97e6d1b7ecb0840c1c6a7fe416023
7
+ data.tar.gz: aff6731285e910a0065f7ddcf14442ba871be06caa73c4343f0cc30e1f97ac4f5152cef71b2267697c117b7a132ac3567d17eb1e4e9b3e840767c6d6d2ed6eca
data/README.md CHANGED
@@ -26,16 +26,18 @@ There are a few variables you have to set:
26
26
 
27
27
  ### Server
28
28
 
29
- `STAN_UPLOAD_DIR=/tmp/stan/upload` is the directory where Stan will temporarly store sites before deploying them.
30
- `STAN_PUBLIC_DIR=/srv/stan` is the directory where the final site will be deployed.
29
+ * `STAN_UPLOAD_DIR=/tmp/stan/upload` is the directory where Stan will temporarly store sites before deploying them.
30
+ * `STAN_PUBLIC_DIR=/srv/stan` is the directory where the final site will be deployed.
31
+ * `STAN_BIND=127.0.0.1` is the ip to bind to.
32
+ * `STAN_PORT=4567` is the port to use.
31
33
 
32
34
  Please note that Stan will create a public directory and a directory for each deployed site within that folder.
33
35
  The final site will then be deployed to `/srv/stan/public/my-site` for example.
34
36
 
35
37
  ### Client
36
38
 
37
- `STAN_SERVER=pages.example.com` is the URL of the remote Stan server which must expose the `/upload` route. Define ports like usual.
38
- `STAN_TEMP_DIR=/tmp/stan` is the directory where Stan will store the site after compressing it. The archive will be removed after upload.
39
+ * `STAN_SERVER=pages.example.com` is the URL of the remote Stan server which must expose the `/upload` route. Define ports like usual.
40
+ * `STAN_TEMP_DIR=/tmp/stan` is the directory where Stan will store the site after compressing it. The archive will be removed after upload.
39
41
 
40
42
 
41
43
  ## Development
@@ -8,7 +8,8 @@ module Stan
8
8
  body: {
9
9
  name: name,
10
10
  file: File.open(source,"r")
11
- }
11
+ },
12
+ followlocation: true
12
13
  )
13
14
  FileUtils.rm(source) unless keep
14
15
  end
@@ -1,6 +1,9 @@
1
1
  require 'sinatra'
2
2
  module Stan
3
3
  class Server < Sinatra::Base
4
+ set :bind, ENV.fetch('STAN_BIND')
5
+ set :port, ENV.fetch('STAN_PORT')
6
+
4
7
  upload_dir = ENV.fetch('STAN_UPLOAD_DIR')
5
8
  public_dir = ENV.fetch('STAN_PUBLIC_DIR')
6
9
  post '/upload' do
@@ -1,3 +1,3 @@
1
1
  module Stan
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flipez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-26 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.5.2
126
+ rubygems_version: 2.6.11
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Static Site Deployment