add script for running moa app
This commit is contained in:
parent
373940b16e
commit
59f08fd86d
1 changed files with 6 additions and 3 deletions
|
@ -57,14 +57,17 @@ in
|
|||
echo "#!/bin/sh" > start.sh
|
||||
echo "cd $out" >> start.sh
|
||||
echo "${moa-env}/bin/python -m moa.models" >> start.sh
|
||||
echo "exec ${moa-env}/bin/python -m moa.worker" >> start.sh
|
||||
chmod +x start.sh
|
||||
cp start.sh start-worker.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 = ''
|
||||
cp -rv $src $out
|
||||
chmod +w $out
|
||||
cp start.sh $out
|
||||
cp start-*.sh $out
|
||||
'';
|
||||
meta = {
|
||||
description = "Mastodon-Twitter crossposter";
|
||||
|
|
Reference in a new issue