mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
reset work command
This commit is contained in:
@ -162,7 +162,7 @@ WORKDIR ${INVENTREE_HOME}
|
||||
ENTRYPOINT ["/bin/ash", "./docker/init.sh"]
|
||||
|
||||
# Launch the development server
|
||||
CMD ${INVENTREE_HOME}/execute.sh
|
||||
CMD ["invoke", "server", "-a", "${INVENTREE_WEB_ADDR}:${INVENTREE_WEB_PORT}"]
|
||||
|
||||
# Image target for devcontainer
|
||||
FROM dev as devcontainer
|
||||
|
@ -38,21 +38,4 @@ if [ "$(awk -v num1=$old_version -v num2=$new_version 'BEGIN { print (num1 < num
|
||||
cp "$db_version_new" "$db_version_old"
|
||||
fi
|
||||
|
||||
|
||||
# Run invoke server in the background
|
||||
invoke server -a "${INVENTREE_WEB_ADDR}:${INVENTREE_WEB_PORT}" | sed "s/^/server: /" &
|
||||
|
||||
# Store the PID of the last background process (invoke server)
|
||||
server_pid=$!
|
||||
|
||||
# Run invoke worker in the background
|
||||
invoke worker | sed "s/^/worker: /" &
|
||||
|
||||
# Store the PID of the last background process (invoke worker)
|
||||
worker_pid=$!
|
||||
|
||||
# Wait for both processes to finish
|
||||
wait $server_pid
|
||||
wait $worker_pid
|
||||
|
||||
echo "Both processes have completed."
|
||||
echo "Database migration/update checks completed."
|
||||
|
Reference in New Issue
Block a user