Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stratton <matt.stratton@gmail.com>2017-04-21 20:48:07 +0300
committerMatt Stratton <matt.stratton@gmail.com>2017-04-21 20:48:07 +0300
commitabbd51a9f921399d8518567a8374801debd687ca (patch)
treeeac93d3ca8995326158ae94d63c0d7f1d31c44df
parentf9682a81c46ed1993e8c135f4092cd9452d12071 (diff)
Fix netlify build stuff
-rw-r--r--bin/netlify-production.sh3
-rwxr-xr-xbin/netlify.sh3
-rw-r--r--netlify-production.sh4
-rw-r--r--netlify.toml8
4 files changed, 12 insertions, 6 deletions
diff --git a/bin/netlify-production.sh b/bin/netlify-production.sh
new file mode 100644
index 0000000..84f645d
--- /dev/null
+++ b/bin/netlify-production.sh
@@ -0,0 +1,3 @@
+ln -s /opt/build/repo /opt/build/castanet
+cd exampleSite
+hugo_0.19 --theme=castanet --buildDrafts=false --baseURL="$URL"
diff --git a/bin/netlify.sh b/bin/netlify.sh
index a85a4c4..a29e701 100755
--- a/bin/netlify.sh
+++ b/bin/netlify.sh
@@ -1,4 +1,3 @@
ln -s /opt/build/repo /opt/build/castanet
cd exampleSite
-../bin/hugo version
-../bin/hugo --theme=castanet --buildDrafts=false --baseURL=$URL
+hugo_0.19 --theme=castanet --buildDrafts=false --baseURL="$DEPLOY_PRIME_URL"
diff --git a/netlify-production.sh b/netlify-production.sh
new file mode 100644
index 0000000..48ef7f2
--- /dev/null
+++ b/netlify-production.sh
@@ -0,0 +1,4 @@
+ln -s /opt/build/repo /opt/build/devopsdays-theme
+cd exampleSite
+hugo_0.19 --theme=devopsdays-theme --buildDrafts=false --baseURL="$URL"
+gulp --cwd .
diff --git a/netlify.toml b/netlify.toml
index 195b60d..ae5f9fc 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -1,10 +1,10 @@
# Production context: All deploys to the main
# repository branch will inherit these settings.
[context.production]
-# command = "bin/netlify-production.sh"
-# publish = "exampleSite/dist"
- publish = "exampleSite/public/"
- command = "bin/netlify.sh"
+# command = "bin/netlify.sh"
+# publish = "exampleSite/public"
+ command = "bin/netlify-production.sh"
+ publish = "exampleSite/dist/"
# Deploy Preview context: All Deploy Previews
# will inherit these settings.