Skip to content

Commit

Permalink
Bugfix: Use correct target for standalone docs upload
Browse files Browse the repository at this point in the history
  • Loading branch information
LaCuneta committed Jul 2, 2019
1 parent 25dea01 commit 619a852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/NetLogoPackaging.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sbt._
import sbt.complete.Parser, Parser._
import Keys.{ baseDirectory, buildStructure, dependencyClasspath, packageBin, state, streams, target }
import ChecksumsAndPreviews.allPreviews
import Docs.{ allDocs, docsRoot, htmlDocs, manualPDF }
import Docs.{ allDocs, docsRoot, extensionDocs, htmlDocs, manualPDF }
import Extensions.{ extensions, extensionRoot }
import ModelsLibrary.{ modelsDirectory, modelIndex }
import NativeLibs.nativeLibs
Expand Down Expand Up @@ -164,7 +164,7 @@ object NetLogoPackaging {
val user = System.getenv("USER")
val host = "ccl.northwestern.edu"
val sourceDir = netLogoRoot.value / "docs"
val targetDir = "/usr/local/www/netlogo"
val targetDir = s"/usr/local/www/netlogo/${netLogoLongVersion.value}"
(htmlDocs in netlogo).value
RunProcess(Seq("rsync", "-av", "--inplace", "--progress", sourceDir.getPath, s"${user}@${host}:${targetDir}"), "rsync docs")
RunProcess(Seq("ssh", s"${user}@${host}", "chgrp", "-R", "apache", s"${targetDir}"), "ssh - change release group")
Expand Down

0 comments on commit 619a852

Please sign in to comment.