Sha256: 4542ea005069b7588a5bd1042eeeb80c06f8f36fa02192f8d70ec93b8b63bc55
Contents?: true
Size: 947 Bytes
Versions: 66
Compression:
Stored size: 947 Bytes
Contents
# frozen_string_literal: true module J1 module Commands class App < Command #noinspection MissingYardParamTag class << self def init_with_program(prog) prog.command(:app) do |c| c.description 'Run the site of a J1 Project as an WebApp' c.syntax 'app' c.action do |args, options| J1::Commands::App.process(args, options) end end end def process(args, options = {}) timestamp = Time.now.strftime("%Y-%m-%d %H:%M:%S") if J1::Utils::is_project? if J1::Utils::is_project_setup? J1.logger.info "#{timestamp} - APP: Starting up your site ..." process = J1::Utils::Exec2.run('APP','npm', 'run', 'j1-app') else raise SystemExit end else raise SystemExit end end end end end end
Version data entries
66 entries across 66 versions & 1 rubygems