pvanand commited on
Commit
9cc1d83
·
1 Parent(s): 41543f9

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +2 -15
entrypoint.sh CHANGED
@@ -1,23 +1,10 @@
1
  #!/bin/bash
2
 
3
- # Define the output file path
4
- output_file="output.log"
5
-
6
  echo "Starting Rasa..."
7
  # Start Rasa in the background
8
- # rasa run --enable-api --port 7860 & echo "Waiting for Rasa to start..."
9
  # Wait for Rasa to start up
10
 
11
  echo "Starting ngrok..."
12
  # Start ngrok to expose port 7860 and save the output to the defined file
13
- ngrok_output=$(ngrok http 7860)
14
-
15
- # Display the output of the ngrok command
16
- echo "Output of ngrok command:"
17
- echo "$ngrok_output" > "$output_file"
18
-
19
- # You can also display the output directly without saving it to a file
20
- # echo "$ngrok_output"
21
-
22
- echo $output_file"
23
- cat "$output_file"
 
1
  #!/bin/bash
2
 
 
 
 
3
  echo "Starting Rasa..."
4
  # Start Rasa in the background
5
+ rasa run --enable-api --port 7860 & echo "Waiting for Rasa to start..."
6
  # Wait for Rasa to start up
7
 
8
  echo "Starting ngrok..."
9
  # Start ngrok to expose port 7860 and save the output to the defined file
10
+ ngrok http 7860 & echo "Waiting for ngrok to start..."