Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
varchashva committed Apr 26, 2019
1 parent ea7472d commit c1dcfcf
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 3 deletions.
Binary file modified core/forms.pyc
Binary file not shown.
Binary file modified core/models.pyc
Binary file not shown.
Binary file modified core/tasks.pyc
Binary file not shown.
4 changes: 4 additions & 0 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ def action(request, project_id):
addaction(project_id, "CMDB",str(request.FILES['cmdbfilepath']) + "@" + str(output) + "@" + datetime.datetime.now().strftime("%Y-%m-%d %H:%M"),seednode)
return redirect("/core/" + str(project_id) + "/action")
else:
if "default" in str(project_id):
output = getlocalinfo(project_id)
print "Project created: " + output
print "Reinitialized DB"
actionList = listActions(project_id)
enumList = listEnums(project_id)
historyList = listHistory(project_id)
Expand Down
Binary file modified core/views.pyc
Binary file not shown.
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ scapy
netifaces
netaddr
ipaddress
celery==4.1.0
boto==2.49.0
celery==4.1.1
boto==2.49.0
rabbitmq
11 changes: 10 additions & 1 deletion wait-for-neo4j.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -e
host="localhost"
cmd="$@"
celerycmd="celery -A LetsMapYourNetwork worker -l warning"
rabbitmqcmd="rabbitmq-server start"

until curl -sI http://"$host":7474 | grep "200 OK"; do
>&2 echo "Neo4j isn't available. Let's wait for sometime"
Expand All @@ -11,4 +13,11 @@ echo $cmd
done

>&2 echo "Neo4j is up now. Let's go..."
exec $cmd
echo "Starting RabbitMQ Server..."
$rabbitmqcmd &
sleep 10
echo "Starting Celery worker..."
$celerycmd &
sleep 5
echo "Starting Lets Map Your Network console..."
exec $cmd

0 comments on commit c1dcfcf

Please sign in to comment.