Compare commits

..

No commits in common. "3646cb177729c8e6f41990411df900ba06179652" and "99fa7598807dc18952b2eb54e80fc2d67de37105" have entirely different histories.

4 changed files with 8 additions and 10 deletions

View File

@ -1,12 +1,13 @@
module Faaso
module Commands
# Controls a funko's scale
#
#
# Scale is how many instances are running.
#
#
# If it's increased, more instances are created.
# It it's decreased, instances are destroyed.
#
#
# In both cases stopped instances after the required
# scale is reached are deleted.
struct Scale

View File

@ -11,8 +11,4 @@ require "uuid"
# FIXME: make configurable
basic_auth "admin", "admin"
get "/" do |env|
env.redirect "index.html"
end
Kemal.run

View File

@ -37,8 +37,8 @@ doc = <<-DOC
FaaSO CLI tool.
Usage:
faaso build FOLDER ... [-v=<level>] [-l]
faaso scale FUNKO [SCALE] [-v=<level>] [-l]
faaso build FOLDER ... [-v=<level>] [-l]
faaso scale FUNKO [SCALE] [-v=<level>] [-l]
faaso status FUNKO [-v=<level>] [-l]
faaso export SOURCE DESTINATION [-v=<level>]
faaso secret [-d|-a] FUNKO SECRET [-v=<level>] [-l]
@ -54,7 +54,7 @@ DOC
ans = Docopt.docopt(doc, ARGV)
LogFormat.setup(ans["-v"].to_s.to_i)
Log.debug { ans }
Log.debug {ans}
case ans
when .fetch("build", false)

View File

@ -8,3 +8,4 @@
ReverseOnly Yes
ReverseMagic Yes
ReversePath "/admin/" "http://127.0.0.1:3000/"
ReversePath "/faaso/hello/" "http://hello-c9ge0d:3000/"