Skip to content

Commit

Permalink
Add some debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Mar 1, 2024
1 parent c7ed5cc commit 525ee6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/controllers/mpa_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ def pept2data
request.content_type = "application/json"
request.body = json_data

puts json_data

# Set up the HTTP session
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
http.request(request)
end

puts response.inspect

# Parse the response body as JSON
response_data = JSON.parse(response.body)

Expand Down
2 changes: 1 addition & 1 deletion config/deploy/dev.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

set :deploy_to, '/home/unipept/rails'

set :server, ENV['server'] || 'rick.ugent.be'
set :server, ENV['server'] || 'rick.taild1497.ts.net'

# don't specify db as it's not needed for unipept
server "#{fetch(:server)}", user: 'unipept', roles: %i[web app], ssh_options: {
Expand Down
2 changes: 1 addition & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
#
port ENV.fetch("PORT") { 3000 }
port ENV.fetch("PORT") { 3001 }

# Specifies the `environment` that Puma will run in.
#
Expand Down

0 comments on commit 525ee6e

Please sign in to comment.