Sha256: a0e596bab0bcc92a323a0a633fa2c376d219c2b0175f5adb5d37f66b460d2456
Contents?: true
Size: 672 Bytes
Versions: 68
Compression:
Stored size: 672 Bytes
Contents
module SOULs class CLI < Thor desc "server", "Run SOULs APP" method_option :all, type: :boolean, alias: "--all", default: false, desc: "Run All API & Workers" def server if options[:all] Dir.chdir(SOULs.get_mother_path.to_s) do front_path = "apps/console/package.json" system("foreman start -f Procfile.dev") system("cd apps/console && yarn dev") if File.exist?(front_path) end else package_json_path = "package.json" if File.exist?(package_json_path) system("yarn dev") else system("foreman start -f Procfile.dev") end end end end end
Version data entries
68 entries across 68 versions & 1 rubygems