1

I have followed this tutorial step by step: https://wildandcrazytutorials.wordpress.com/2016/03/05/how-to-build-a-grape-standalone-rest-api/

However I get the error:

Puma starting in single mode...
Version 3.6.2 (ruby 2.2.2-p95), codename: Sleepy Sunday Serenity
Min threads: 0, max threads: 16
Environment: development
ERROR: No application configured, nothing to run

when I run puma in In ./myapp

I am running it on a MacOs.

I am new to grape and I would love some guidance. I have literally simply followed the tutorial up to "Run the following to startup the server after every change…

In ./myapp

$ puma"

Amanda Cavallaro
  • 303
  • 3
  • 18

1 Answers1

0

I got my answer from Daniel @ https://groups.google.com/forum/#!forum/ruby-grape

There was a syntax error, his code below fixed my problem, I appreciate it.

require 'rubygems' 
require 'grape'

Dir.glob("**/*.rb").each do |f|
puts "Loaded #{f}"
require_relative "../#{f}" unless File.absolute_path(f) == __FILE__
end
Amanda Cavallaro
  • 303
  • 3
  • 18