bin/scms in scms-2.0.0 vs bin/scms in scms-2.0.1
- old
+ new
@@ -56,10 +56,11 @@
#Set globals
$stdout.sync = true
root_folder = File.expand_path("../", File.dirname(__FILE__))
website = (options[:website].nil?) ? Dir.pwd : options[:website]
+$website = website
Folders = {
:root => root_folder,
:website => File.join(website),
:pub => (ENV["SCMS_PUBLISH_FOLDER"] or options[:pub]),
:assets => File.join(root_folder, "assets"),
@@ -92,6 +93,6 @@
raise "No website in folder #{Folders[:website]}" if !File::directory?(Folders[:website])
Scms.upgrade(Folders[:website])
Scms.build(Folders[:website], Folders[:pub], Folders[:config], options[:mode])
Scms.copywebsite(Folders[:website], Folders[:pub]) if Folders[:pub] != nil
-Scms.deploy(deployDir, Folders[:config]) if options[:action] == "deploy"
+Scms.deploy(Folders[:website], Folders[:config]) if options[:action] == "deploy"
\ No newline at end of file