Grape stand alone rest api ERROR: No application configured, nothing to run

878 views
Skip to first unread message

Amanda C. Cavallaro

unread,
Jan 11, 2017, 5:15:55 AM1/11/17
to Grape Framework Discussion

but 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.
Thank you.

Daniel D.

unread,
Jan 11, 2017, 7:44:31 AM1/11/17
to ruby-...@googlegroups.com
Without reading that tutorial, if you put your app on Github, would be happy to help with a fix.

--
You received this message because you are subscribed to the Google Groups "Grape Framework Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-grape+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Amanda C. Cavallaro

unread,
Jan 12, 2017, 6:06:09 AM1/12/17
to Grape Framework Discussion
Hi Daniel,

Thank you for being prompt to help! I've added the project to GitHub: https://github.com/amdcaruso/learning_grape

I would love to get help to have the project up and running so that I can continue following the tutorial and reading other resources to learn and improve: grape. 


On Wednesday, January 11, 2017 at 12:44:31 PM UTC, Daniel Doubrovkine wrote:
Without reading that tutorial, if you put your app on Github, would be happy to help with a fix.
On Wed, Jan 11, 2017 at 5:15 AM, Amanda C. Cavallaro <amdc...@gmail.com> wrote:

but 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.
Thank you.

--
You received this message because you are subscribed to the Google Groups "Grape Framework Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-grape+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Daniel D.

unread,
Jan 12, 2017, 8:03:22 AM1/12/17
to ruby-...@googlegroups.com
Other than a syntax error in boot.rb everything worked.

require 'rubygems'
require 'grape'

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

Type `rackup` to start the app, that's what reads the config.ru file.

Hppe this helps.



To unsubscribe from this group and stop receiving emails from it, send an email to ruby-grape+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Amanda C. Cavallaro

unread,
Jan 12, 2017, 8:19:58 AM1/12/17
to ruby-...@googlegroups.com
I sincerely appreciate it, Daniel.
It works fine now, I am ready to continue my path in learning grape!

All the best,

Amanda Cavallaro
Co-organiser at GDGCloud London
WomenTechMaker
​s​
 
​Lead​

--
You received this message because you are subscribed to a topic in the Google Groups "Grape Framework Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ruby-grape/H3YirjnbosE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ruby-grape+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages