Go to Post "at some point in the next six weeks you are going to start feeling like you are involved in a robot building contest. Then you are in serious trouble" -Dean Kamen - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-05-2014, 16:09
adi20f's Avatar
adi20f adi20f is offline
Registered User
AKA: Aditya Chaudhry
FRC #0649 (M-SET Fish)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Saratoga
Posts: 3
adi20f is an unknown quantity at this point
Help with Cheesy Parts on Openshift

Hi I was wondering anyone could help me with running cheesy parts for my team. we are using currently using openshift to run the site and have git pushed all the code onto the server. just wondering how exactly do you start cheesy parts when its on the server. I attached my config.ru and any advice to get this operation running would help!
Attached Files
File Type: docx config for openshift.docx (9.0 KB, 35 views)
  #2   Spotlight this post!  
Unread 18-05-2014, 16:29
tim-tim's Avatar
tim-tim tim-tim is offline
Simplicity by Design...
AKA: Tim Miedzinski
FRC #0836 (The RoboBees)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2004
Location: Hollywood
Posts: 605
tim-tim has a reputation beyond reputetim-tim has a reputation beyond reputetim-tim has a reputation beyond reputetim-tim has a reputation beyond reputetim-tim has a reputation beyond reputetim-tim has a reputation beyond reputetim-tim has a reputation beyond reputetim-tim has a reputation beyond reputetim-tim has a reputation beyond reputetim-tim has a reputation beyond reputetim-tim has a reputation beyond repute
Re: Help with Cheesy Parts on Openshift

We are not using Openshift, but went through a lot of trial and error when the original release was made last year. Our biggest problem was understanding the Ruby protocol and how to use it.

The only thing that you have to change from the published code is the config/environment.rb file. You basically need to change all the info inside this environment file to match your server, database, and URL settings. This is what took us the longest to figure out. We were attempting to change the wrong file for a while. There is also a way to run your own local copy.

Once you have the config/environment.rb file changed, upload all the contents to a folder on your server. Change your directory to the folder you just uploaded everything to and then follow the commands in the read me file. Start with bundle install. This installs all the gem files necessary for Cheesy Parts to run. Then do the remaining two steps of migrating and starting.

Also, Pat Fairbank was extremely helpful when we were trying to figure this out. Let me know if this helps or if I misunderstood your question.
__________________
The RoboBees

Tim's Shortcuts Anderson Powerpoles and Crimper, Star/Tube Nuts
  #3   Spotlight this post!  
Unread 18-05-2014, 16:45
adi20f's Avatar
adi20f adi20f is offline
Registered User
AKA: Aditya Chaudhry
FRC #0649 (M-SET Fish)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Saratoga
Posts: 3
adi20f is an unknown quantity at this point
Re: Help with Cheesy Parts on Openshift

So our rake and environment files have been calibrated for the server's mysql log in. But our trouble is on understanding how what the SSH deployment is in the ReadMe and how we can run it on our openshift server. Sorry if this was not clear in the beginning
  #4   Spotlight this post!  
Unread 18-05-2014, 20:40
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Help with Cheesy Parts on Openshift

Quote:
Originally Posted by adi20f View Post
So our rake and environment files have been calibrated for the server's mysql log in. But our trouble is on understanding how what the SSH deployment is in the ReadMe and how we can run it on our openshift server. Sorry if this was not clear in the beginning
The fezzik script is used to automatically send over all the necessary files for Cheesy Parts to the remote server, then start the application. Running "bundle exec fez prod deploy" on your computer will set up Cheesy Parts on the remote server.

You'll need the SSH key for the openshift server in order for the script to work. The fezzik script uses rsync to move files between the computers using ssh public key encryption. If you can already ssh in to the server, you should have your key, username, and server address, so you should be all set.

The other thing that you may need to be careful of is the mysql server host address. It is likely that it will not be running on the same system as your application is, so it could have a separate ip address. I believe that running "show variables where variable_name = 'hostname' " in mysql will give you the hostname of the mysql server.
  #5   Spotlight this post!  
Unread 19-05-2014, 00:28
adi20f's Avatar
adi20f adi20f is offline
Registered User
AKA: Aditya Chaudhry
FRC #0649 (M-SET Fish)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Saratoga
Posts: 3
adi20f is an unknown quantity at this point
Re: Help with Cheesy Parts on Openshift

Thanks Jared!

One slight issue I have is that I get this error:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
[fail]

Whenever I try to run the code "bundle exec fez prod deploy." to my understanding its because of my SSH key. Any help would be appreciated
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi