Skip to content

Instantly share code, notes, and snippets.

@BolaNasr
Created March 12, 2019 13:21
Show Gist options
  • Save BolaNasr/3e12024b38fda148e32b79786c850927 to your computer and use it in GitHub Desktop.
Save BolaNasr/3e12024b38fda148e32b79786c850927 to your computer and use it in GitHub Desktop.
[startup.wiki]
name = "bash"
protected = true #set protected to true to respawn the container if it crashed
[startup.wiki.args]
script = """
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
export HOME=/root
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
. /sandbox/env.sh
cd /sandbox/code/github/threefoldfoundation/info_foundation
git pull
cd /sandbox/code/github/threefoldfoundation/info_tokens
git pull
cd /sandbox/code/github/threefoldfoundation/lapis-wiki
git pull
cd /sandbox/code/github/threefoldtech/digitalmeX
git pull
ln -s /sandbox/code/github/threefoldtech/digitalmeX/packages/system/chat/lapis/static/chat /sandbox/code/github/threefoldfoundation/lapis-wiki/static
ln -s /sandbox/code/github/threefoldtech/digitalmeX/packages/system/chat/lapis/views/chat /sandbox/code/github/threefoldfoundation/lapis-wiki/views
ln -s /sandbox/code/github/threefoldtech/digitalmeX/packages/system/chat/lapis/applications/chat.moon /sandbox/code/github/threefoldfoundation/lapis-wiki/app.moon
js_shell \'
server = j.servers.gedis.configure(host=\"0.0.0.0\", port=8888)
server.actor_add(\"/sandbox/code/github/threefoldtech/digitalmeX/packages/system/chat/actors/chatbot.py\")
server.chatbot.chatflows_load(\"/sandbox/code/github/threefoldtech/digitalmeX/packages/system/base/chatflows/ \")
server.start() \'
exec js_shell \"j.tools.markdowndocs.webserver()\"
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment