Skip to content

Instantly share code, notes, and snippets.

@gxm11
Last active June 11, 2020 07:55
Show Gist options
  • Select an option

  • Save gxm11/e7eeb11a90251bac6698cbcdd2025602 to your computer and use it in GitHub Desktop.

Select an option

Save gxm11/e7eeb11a90251bac6698cbcdd2025602 to your computer and use it in GitHub Desktop.
run gogs on sae docker virtual machine...
# for alpine 3.8
apk add --no-cache gogs bash
cd /usr/bin
ln -s /usr/share/webapps/gogs/templates templates
ln -s /usr/share/webapps/gogs/public public
mkdir custom
mkdir custom/conf
chmod -R 777 custom templates public
adduser -D git
cat > /etc/Procfile <<EOF
web: su git -c 'gogs web -p $PORT'
EOF
mint reload
mint start web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment