add script for running moa app

This commit is contained in:
Charlotte 🦝 Delenk 2022-11-02 16:21:33 +01:00
parent 373940b16e
commit 59f08fd86d
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -57,14 +57,17 @@ in
echo "#!/bin/sh" > start.sh echo "#!/bin/sh" > start.sh
echo "cd $out" >> start.sh echo "cd $out" >> start.sh
echo "${moa-env}/bin/python -m moa.models" >> start.sh echo "${moa-env}/bin/python -m moa.models" >> start.sh
echo "exec ${moa-env}/bin/python -m moa.worker" >> start.sh cp start.sh start-worker.sh
chmod +x start.sh mv start.sh start-app.sh
echo "exec ${moa-env}/bin/python -m moa.worker" >> start-worker.sh
echo "exec ${moa-env}/bin/python app.py" >> start-app.sh
chmod +x start-*.sh
''; '';
installPhase = '' installPhase = ''
cp -rv $src $out cp -rv $src $out
chmod +w $out chmod +w $out
cp start.sh $out cp start-*.sh $out
''; '';
meta = { meta = {
description = "Mastodon-Twitter crossposter"; description = "Mastodon-Twitter crossposter";