Skip to content

Commit 22a1e34

Browse files
authored
Merge pull request #15 from CYX22222003/update-netlify-build
Update build and deploy script for Netlify The current instructions to deploy to Netlify no longer work as the default build image only has Java 8. Let's add code to manually set up Java 11 on Netlify for deployment.
2 parents 364c000 + 2d978bb commit 22a1e34

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

netlify.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[build]
2+
command = """
3+
wget https://download.java.net/java/ga/jdk11/openjdk-11_linux-x64_bin.tar.gz &&
4+
tar -xvzf openjdk-11_linux-x64_bin.tar.gz &&
5+
mv jdk-11 ~/openjdk11 &&
6+
export JAVA_HOME=$HOME/openjdk11 &&
7+
export PATH=$JAVA_HOME/bin:$PATH &&
8+
pip install requests && ./run.sh
9+
"""
10+
11+
publish = "./reposense-report"
12+
base = "./"

0 commit comments

Comments
 (0)