#!/bin/bash
cd /opt/superdesk/client/ && grunt template
nginx &

cd /opt/superdesk &&
bash ./scripts/fig_wrapper.sh honcho start

#!/bin/bash
cd /opt/superdesk/client/dist &&
sed -i -e "s/http:\/\/localhost:5000\/api/$(echo $SUPERDESK_URL | sed 's/\//\\\//g')/g" index.html -e "s/ws:\/\/localhost:5100/$(echo $SUPERDESK_WS_URL | sed 's/\//\\\//g')/" &&
nginx &

cd /opt/superdesk &&
bash ./scripts/fig_wrapper.sh honcho start

Revert "docker script updated for template"
Revert "docker script updated for template"

This reverts commit 6996ecc643d3d83bc5e28636a2f4875309544957.
