vae 0.7.2 → 0.7.3
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 +4 -4
- data/lib/full_stack.rb +6 -1
- data/lib/vae_local.rb +2 -2
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b95fc5024589647fe8a5ce90b61558bbc8c65e1
|
|
4
|
+
data.tar.gz: 6f978752af76b5550d52b20dcc914e6786e0feaf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce47bba6853b2295f51bed8c083e9db6ba6871fb3a254fe20fe41e03f117033f3dff80ccea9b1bdfd4dd1e6a936d3a8e1246c11830a583e824fee6c1c5637d12
|
|
7
|
+
data.tar.gz: 46ffb5c49910fbf7591b13b029c77e7e4a182fb5691d4e1865c720b95938e63a4457b395cd58f92cf709f9766e835105f67fd1e6a6729b54a2945412188397df
|
data/lib/full_stack.rb
CHANGED
|
@@ -91,7 +91,12 @@ class FullStack
|
|
|
91
91
|
ENV['VAE_LOCAL_BACKSTAGE'] = @site.subdomain + ".vaeplatform." + (ENV['VAEPLATFORM_LOCAL'] ? "dev" : "com")
|
|
92
92
|
ENV['VAE_LOCAL_SECRET_KEY'] = @site.secret_key
|
|
93
93
|
ENV['VAE_LOCAL_DATA_PATH'] = @site.data_path
|
|
94
|
-
|
|
94
|
+
if options[:php_runtime] == "hhvm"
|
|
95
|
+
ENV['VAE_LOCAL_HHVM'] = "1"
|
|
96
|
+
exec "hhvm -c #{vae_remote_path}/tests/dependencies/php.ini -m server -d hhvm.pid_file=/tmp/vae_local.hhvm.pid -d auto_prepend_file=#{vae_remote_path}/lib/index.php -d hhvm.server.default_document=#{vae_remote_path}/lib/index.php -d hhvm.server.error_document404=#{vae_remote_path}/lib/index.php -d hhvm.server.port=#{options[:port]} -d hhvm.server.source_root=#{Shellwords.shellescape(@site.root)}"
|
|
97
|
+
else
|
|
98
|
+
exec "php -c #{vae_remote_path}/tests/dependencies/php.ini -S 0.0.0.0:#{options[:port]} #{vae_remote_path}/lib/index.php"
|
|
99
|
+
end
|
|
95
100
|
}
|
|
96
101
|
end
|
|
97
102
|
|
data/lib/vae_local.rb
CHANGED
|
@@ -63,7 +63,7 @@ class VaeLocal
|
|
|
63
63
|
opts.on("-p","--port <port number>","Start server on this port") { |o| options[:port] = o.to_i; raise VaeError "Port #{o.to_i} is already in use." unless VaeLocal.port_open?(o.to_i) }
|
|
64
64
|
opts.on("-r","--root <path to site root>","Path to the root of the local copy of your Vae site.") { |o| options[:site_root] = o }
|
|
65
65
|
opts.on("-s","--site <subdomain>","Vae subdomain for this site") { |o| options[:site] = o }
|
|
66
|
-
opts.on("-f","--full-stack","Run in Full Stack Mode
|
|
66
|
+
opts.on("-f","--full-stack [php|hhvm]","Run in Full Stack Mode. Optionally provide 'php' or 'hhvm' to specify your preferred PHP runtime") { |o| options[:server] = FullStack; options[:php_runtime] = o }
|
|
67
67
|
opts.on("-b","--branch","If running stage or stagerelease, override the branch to deploy here") { |o| options[:branch] = o }
|
|
68
68
|
opts.on("-d","--data-path <path>","Where to Store Content and Image Data When In Full Stack Mode") { |o| options[:data_path] = o }
|
|
69
69
|
opts.on("-l","--log-level <level>","Vaedb Log Level (for Full Stack Mode)") { |o| options[:log_level] = o }
|
|
@@ -142,7 +142,7 @@ class VaeLocal
|
|
|
142
142
|
return
|
|
143
143
|
end
|
|
144
144
|
req = Net::HTTP::Post.new("/api/local/v1/#{action}")
|
|
145
|
-
req.body = "username=#{CGI.escape(username)}&password=#{CGI.escape(password)}&branch=#{CGI.escape(branch)}&vae_local=1"
|
|
145
|
+
req.body = "username=#{CGI.escape(username)}&password=#{CGI.escape(password)}&branch=#{CGI.escape(branch || "")}&vae_local=1"
|
|
146
146
|
res = VaeLocal.fetch_from_vaeplatform(site, req)
|
|
147
147
|
if res.is_a?(Net::HTTPFound)
|
|
148
148
|
raise VaeError, "Invalid username/password or insufficient permissions."
|
data/lib/version.rb
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VER = "0.7.
|
|
1
|
+
VER = "0.7.3"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vae
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Action Verb, LLC
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-
|
|
12
|
+
date: 2017-07-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: chunky_png
|