Downloaded project from Github, rails server won't start - ruby-on-rails

Downloaded a project from Github and I am having issues getting the rails server to start. I ran the bundle install and am definitely in the right directory, is there anything that I've missed that you're supposed to do?
http://pastebin.com/rjhkQkZk

Run rails server. If there is another error, please provide more information:
Operating System
Rails Version
Log

Make sure you are at the root (directory) of the project you downloaded. And then try this command:
rails s
It would be really nice if we could learn what your log entries say.

In your terminal set the ruby source and go to the Root directory.
hit rails s or rails server

Stupid, stupid noob mistake - it's with sinatra not rails. Sorry to waste your time, guys.

Related

Error: Rails command not found

I created a new Rails project in a directory, say Desktop (rails new project1). After that, I ran the following command:
rails server
Then, the project1 was running on localhost.
After that, I made another directory with name (project1) in another location. I copied all the files from the previous location to new location. After that, when I ran the following command:
rails server
I got the following error message:
Rails is not currently installed on this system.
But it is working in the previous directory. How do I solve this?
If you are totally new to Rails development and System administration it is rather complicated in the beginning. I recommend any kind of Rails tutorial to you for examply by Michael Hartl .
As Graeme McLean points out you somewhen understand that there is information about your environment needed to help you.
Most likely the requirements you need to be set up are not set up in the place you did copy your rails project as Pavan and Thaha kp pointed out.

How do I set up an old Ruby on Rails project on a new server?

I'm not a RoR programmer myself, but a good client of ours has sent a project their previous web team built and I need to get it up and running on their server.
The server uses cPanel and Ruby on Rails is already installed. I've created a project via the cPanel wizard and located the file tree via SSH.
Using SSH, I've tried to replace this file tree with the project I've been sent, but when I hit 'run' in cPanel, the application doesn't actually start (although the success message would indicate that it has).
If I leave the original cPanel-created application in place, I can run/stop no problem and the web interface at :12001 opens up just fine.
I assume there are either conflicts with RoR versions that I need to resolve, or there's simply more to it than just replacing the file tree? Again I'm not a RoR programmer and I'm having a hard time finding a migration guide that tells me anything other than "set up in cPanel and replace the files".
I'd very much appreciate either some genuinely useful links to RoR application setup/migration guides (ideally for cPanel) or a step-by-step answer please.
First, forget Cpanel for now. Try in one environment where you can control everything.
Try to know better the rails version used and the associated gem19s or plugin if from 2.x days. The ruby version is important too, only then you can start defining a plan.
I'm afraid you won't get a step-by-step answer, but I'm sure you can be pointed in the right direction by providing the requested information.
Simple questions: Do you have a Gemfile file at the top at your project? Do you have any plugins (stuff in vendor/plugins)?
Update:
With the Gemfile provided here are the required steps:
Install ruby (if you haven't install it using rvm. The version 1.9.3-x should be the safest.
Install rubygems
Install bundler
Go the project dir and run bundle install
run rake db:migrate (assure you have the database setup acording to config/database.yml
run rails s and check the logs and see if the server is up.
If after installing bundler, you don't have the bundle command in your path, you need to add this your .bash_profile:
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH

Running a Ruby on Rails app from GitHub

Im new to github.. I have register my name there, I'm not a rails developer, but i want to learn Ruby on Rails.
Have someone any idea about its basic tutorials for creating Ruby on Rails applications, execute them etc
Thanks in advance
GitHub isn't a web host, it's a version control repository. You put your source code there to share with others (either the general public, for open source stuff, or members of your team).
For getting going with Rails, I'd suggest Heroku. It uses git as the way to get your app running on their servers, which is ridiculously simple. It's also free to get going, you only need to pay if your web traffic gets too big or if you want to use advanced features.
When I was learning Rails, the two sources that helped the most were the Pragmatic Programmers book Agile Web Development with Rails book and Ryan Bates' excellent Railscasts site.
http://guides.rubyonrails.org/getting_started.html will help you i think.You can start reading from here.
If you want to run a project from git the you have to do the following
->git clone git#github.com:Project/project.git [A public project of github]
->cd project
->bundle install
->rake db:migrate
->rails server
but before this you have to set up your ruby on rails environment.Rubymine is one of the best IDE for ROR development.
Best of Luck !!!!
Check out some tutorials from here - http://www.rubyonrailstutorials.com/
Almost all of them include describing work with git and github.
Well, first of all you should check the documentation from the framework's page at http://rubyonrails.org
A quick guide to run the server locally:
For rails application prior to version 3.0 you should run:
ruby script/server
For newer applications you should run:
rails server
But there are probably a lot of other topics to review first (depending on the application):
Dependency installation
Database configuration
Custom initializers
Etc...
If the application doesn't have a decent Readme file or any other documentation you should probably need to ask the application author for some help.
Hope that help, don't give up, there are a lot of new things to learn but I think the effort worth it. Good luck.
After cloning
1.install rbenv or rvm for managing and installing ruby
In terminal(your project root)
2. sudo gem install bundler
3. bundle install
3. rails s

Any Xampp Like For Ruby On Rails?

I'm still new to ruby and i'm in the process to learn it, i'm actually using Xampp for php on windows, but i'm stuck at finding a complete package to install a RoR server just like Xampp without any manual work.
Is there any tool out there?
You can try Rails Installer
One of your choices is to use built in mongrel/webrick server which comes with each rails app. Just type $ rails s at the console and you're good to go. Otherwise I don't think it's particularly useful to deploy an app each time you change something.

Need help with my rails 3 environment

pulled down a repo from git. For some reason I need to do
./script/rails.rb s
where on the rails 3 ap I started on my box, I can just do the
rails server
can anyone help me set up my environment so I don't have to do this? I'm still trying to figure out what I need to type to do a migration...
I think I've figured this out. The repo you downloaded was from somebody developing on a Windows machine. They have to add the ".rb" extention to script/rails to get it to work right.
Calling rails server is really just an alias for script/rails. But you're getting an error because when you type rails server, script/rails isn't there.
The solution is easy: in your local copy of that project, rename script/rails.rb back to script/rails the way it should be.
Also, rails s and rails server are the same thing - one is just a shortcut.

Resources