Sha256: 3beb26cea20a1d01430fac7a25ec3c82bf493cd2cef06404bc7393c901f9c8cd
Contents?: true
Size: 835 Bytes
Versions: 2
Compression:
Stored size: 835 Bytes
Contents
#!/usr/bin/env ruby $:.unshift << File.expand_path("../../lib", __FILE__) require 'magent' require 'magent_web' require 'launchy' require 'fileutils' if ARGV[0] == "--install" base_path = File.expand_path("../../", __FILE__) if File.exist?("public/javascripts/") && File.exist?("public/stylesheets/") FileUtils.cp_r("#{base_path}/public/javascripts/", "public/") FileUtils.cp_r("#{base_path}/public/stylesheets/", "public/") else raise ArgumentError, "public/javascripts and public/stylesheets do not exist" end exit 0 end Thread.start do sleep 2.5 Launchy.open("http://localhost:9876") end Rack::Server.new(:Port => "9876", :config => File.dirname(__FILE__)+"/../config.ru", :AccessLog => [], :pid => nil, :Host => "0.0.0.0").start
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
magent-0.7.0 | bin/magent-web |
magent-0.6.2 | bin/magent-web |