Skip to content

Commit

Permalink
Include "-p ..." argument in helpful kobweb export message if relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
bitspittle committed Jan 30, 2025
1 parent 2e1625e commit 2066c69
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import com.varabyte.kobweb.cli.common.kotter.informGradleStarting
import com.varabyte.kobweb.cli.common.kotter.newline
import com.varabyte.kobweb.cli.common.kotter.trySession
import com.varabyte.kobweb.cli.common.kotter.warnFallingBackToPlainText
import com.varabyte.kobweb.cli.common.relativeToCurrentDirectory
import com.varabyte.kobweb.cli.common.showStaticSiteLayoutWarning
import com.varabyte.kobweb.cli.common.waitForAndCheckForException
import com.varabyte.kobweb.server.api.ServerEnvironment
Expand Down Expand Up @@ -104,7 +105,12 @@ private fun handleExport(
cyan {
text(
buildString {
append("kobweb run --env prod")
append("kobweb run")
kobwebApplication.path.relativeToCurrentDirectory()?.let { relativePath ->
append(" -p ")
append(relativePath)
}
append(" --env prod")
if (siteLayout.isStatic) append(" --layout static")
}
)
Expand Down

0 comments on commit 2066c69

Please sign in to comment.