Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaks to use swe-agent web UI from docker #423

Merged
merged 1 commit into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
COPY . /app

# Install Python dependencies
RUN pip install .
RUN pip install -e '.'

# Install react dependencies ahead of time
RUN cd sweagent/frontend && npm install
5 changes: 4 additions & 1 deletion start_web_ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ echo " web_api.log for error messages!"

cd ../../
trap print_log ERR
python sweagent/api/server.py > web_api.log 2>&1
python sweagent/api/server.py > web_api.log 2>&1 &

wait -n
exit $?
2 changes: 1 addition & 1 deletion sweagent/api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,4 @@ def _build_cors_preflight_response():

if __name__ == "__main__":
app.debug = True
socketio.run(app, port=8000, debug=True)
socketio.run(app, port=8000, debug=True, allow_unsafe_werkzeug=True)
Loading