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

Version Path
souls-4.1.2 lib/souls/cli/server/index.rb
souls-4.1.1 lib/souls/cli/server/index.rb
souls-4.1.0 lib/souls/cli/server/index.rb
souls-4.0.3 lib/souls/cli/server/index.rb
souls-4.0.2 lib/souls/cli/server/index.rb
souls-4.0.1 lib/souls/cli/server/index.rb
souls-4.0.0 lib/souls/cli/server/index.rb
souls-3.0.8 lib/souls/cli/server/index.rb
souls-3.0.7 lib/souls/cli/server/index.rb
souls-3.0.6 lib/souls/cli/server/index.rb
souls-3.0.5 lib/souls/cli/server/index.rb
souls-3.0.4 lib/souls/cli/server/index.rb
souls-3.0.3 lib/souls/cli/server/index.rb
souls-3.0.2 lib/souls/cli/server/index.rb
souls-3.0.1 lib/souls/cli/server/index.rb
souls-3.0.0 lib/souls/cli/server/index.rb
souls-2.0.4 lib/souls/cli/server/index.rb
souls-2.0.3 lib/souls/cli/server/index.rb
souls-2.0.2 lib/souls/cli/server/index.rb
souls-2.0.1 lib/souls/cli/server/index.rb