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

Add a publish action to items to allow them to post data to a remote site #21

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

RobNicholsGDS
Copy link
Collaborator

Note that it is possible to post from the new items publish view to the esdas controller. However, if you try doing that in development with only one instance of the app running, the connection will time out because the app is unable to handle the new HTTP request while it is still trying to process the current one.

I was able to test the set up locally by running two instances of the app. To do this I opened two consoles and entered each with one of these two commands:

  • Client: PUBLISH_URL=http://localhost:3001/esdas.json rails s
  • API endpoint: rails s -p 3001 -P 333

@RobNicholsGDS RobNicholsGDS merged commit e851e9d into main Mar 13, 2024
2 checks passed
@RobNicholsGDS RobNicholsGDS deleted the add-push-to-api-to-items branch March 13, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant