Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9247881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:50:49+00:00 2026-06-18T09:50:49+00:00

i wanna make a simple ruby App Engine in rails just like heroku, i’m

  • 0

i wanna make a simple ruby App Engine in rails just like heroku, i’m dealing with a problem now.

My idea was:

1.use rails to establish the App Engine, use a class ‘App’ to handle all apps.

2.when a user create an ruby app he should offer it’s git path

3.when the user deploys it, my app engine will do these things:

  • clone the git to a path in my server (done
  • use RVM to designatine the ruby version witch user wanted and make a gemdir for the project (some problems here
  • create a nginx conf for the project, then include it and reload nginx (i can do it

Problems in the second step:

codes here:

  def start_thin
    Dir.chdir(proj_path) do
      system('rvm use ruby-1.8.7-p352@testname --create')
      system('gem env gemdir')
      success = system ('thin start -s3 --socket ' + self.proj_sock)
      if success
        return true
      end
    end
    return false
  end

when the code runs here, the log told me “RVM is not a function…blahblah”, i know something about the login-shell and non-login-shell, then i try to fix it via editing .bashrc but same problem occurred.

And if i ignore it, the app can’t be deployed, because of a Load Error :

myapp.rb:2:in `require': cannot load such file -- sinatra (LoadError)

if i open a terminal in that app directory, i can use thin to start it.

i wanna know how to run cmd just like in a terminal, without all these odd problem?
or how to edit my method to fix it?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:50:50+00:00Added an answer on June 18, 2026 at 9:50 am

    Thanks Casper and GhostRider.

    The user and rvm settings are correct.

    After lots of googles and tests i found it’s impossible…
    Finally I fixed it by using RVM’s ruby api instead of running system command.
    Such as :

    require 'rvm'
    env = RVM.current
    env.gemset.create('app1')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I wanna make a small (64k) demo--nothing super impressive, just for the coding
I wanna make this rather simple to ask so I can hope for a
Any easy to make a simple linearlayout with a buncha textviews scrollable? Right now,
My problem is that I wanna make a config file for an application but
HI Guys. I wanna know how can I make a simple search using named
I'm pretty new with the Play framework. I wanna make a simple splittest framework
I wanna make a post form in code behind. I have simple html post
I wanna do something like this: <?php $editor = new editor('reply.php?topic=100', 'simple'); echo $editor;
I wanna make certain fields in my page to show me like a list
I wanna make an simple GUI application that work on at least Windows and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.