Skip to content

Instantly share code, notes, and snippets.

@BigAlRender
Last active July 31, 2025 00:10
Show Gist options
  • Save BigAlRender/41f4c4d87df3e25770e3db8db728443e to your computer and use it in GitHub Desktop.
Save BigAlRender/41f4c4d87df3e25770e3db8db728443e to your computer and use it in GitHub Desktop.

Revisions

  1. BigAlRender revised this gist Mar 9, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion render-build.sh
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,6 @@ else
    fi

    # be sure to add Chromes location to the PATH as part of your Start Command
    # export PATH="${PATH}:/opt/render/project/.render/chrome/opt/google/chrome/"
    # export PATH="${PATH}:/opt/render/project/.render/chrome/opt/google/chrome"

    # add your own build commands...
  2. BigAlRender revised this gist Aug 8, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion render-build.sh
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ else
    echo "...Using Chrome from cache"
    fi

    # be sure to add this export this to the PATH as part of your Start Command
    # be sure to add Chromes location to the PATH as part of your Start Command
    # export PATH="${PATH}:/opt/render/project/.render/chrome/opt/google/chrome/"

    # add your own build commands...
  3. BigAlRender created this gist Aug 8, 2022.
    22 changes: 22 additions & 0 deletions render-build.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    #!/usr/bin/env bash
    # exit on error
    set -o errexit

    STORAGE_DIR=/opt/render/project/.render

    if [[ ! -d $STORAGE_DIR/chrome ]]; then
    echo "...Downloading Chrome"
    mkdir -p $STORAGE_DIR/chrome
    cd $STORAGE_DIR/chrome
    wget -P ./ https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    dpkg -x ./google-chrome-stable_current_amd64.deb $STORAGE_DIR/chrome
    rm ./google-chrome-stable_current_amd64.deb
    cd $HOME/project/src # Make sure we return to where we were
    else
    echo "...Using Chrome from cache"
    fi

    # be sure to add this export this to the PATH as part of your Start Command
    # export PATH="${PATH}:/opt/render/project/.render/chrome/opt/google/chrome/"

    # add your own build commands...