I need to push my rails code into stating environment from github. And then deploy this app into engineyard in staging environment. Could some please give me step I need follow
So, after little thinking I have wrote the following:
# In repository we don't need to have:
# Compiled object files
*.o
# Generated MOC, resource and UI files
moc_*.cpp
qrc_*.cpp
ui_*.h
# Built windows .exe and linux binaries
# NOTE: PROJECT is a your project's name, analog of PROJECT.exe in Linux
*.exe
*.dll
PROJECT
# Windows-specific files
Thumbs.db
desktop.ini
# Editors temporary files
*~
# Debug and Release directories (created under Windows, not Linux)
Debug/
Release/
Please ask, what needs to be added or fixed (especially for Windows - I haven't one under hand now. And Mac too [haven't work in it at all]).
I want to keep my repository clear :-)
i've been experimenting with github as my personal code rep.. and it has been a bit of a disaster with windows.
i've used Subversion, CVS, and Perforce in the past.. none were as annoying to use as github.
i've figured out the PGP part, although my workstation no longer lets me check in, and after searching around it turns out that github bash is using putty which is not that reliable and should be configured with something else..
i was not able to configure it with windows shell extension for a nice visual of what is part of the repository, what is modified, and easy check ins, and easy pushes..
has anyone successfully configured some kind of windows shell client and can efficiently and quickly synchronize various machines?
It just seems to be more pain to use than it is worth..
I've got two branches from my master: v2.1 (version 2) I've been working on for several months; wss that I created yesterday to add one specific feature to my master (in production)
Is there a way to copy yesterday's commits from wss to v2.1?
We use SVN for our source-code revision control and are experimenting using it for non-source-code files.
We are working with a large set (300-500k) of short (1-4kB) text files that will be updated on a regular basis and need to version control it. We tried using SVN in flat-file mode and it is struggling to handle the first commit (500k files checked in) taking about 36 hours.
On a daily basis, we need the system to be able to handle 10k modified files per commit transaction in a short time (<5 min).
My questions:
Is SVN the right solution for my purpose. The initial speed seems too slow for practical use.
If Yes, is there a particular svn server implementation that is fast? (We are currently using the gnu/linux default svn server and command line client.)
If No, what are the best f/oss/commercial alternatives
Thanks
Hi,
I am very new to ruby on rails. I've installed a complicated ruby on rails project via github clone and bundle install, and I was making minor changes to it until it reaches a point whereby it is not stable anymore, sass was throwing strange exceptions, so did other ruby gems. For a rails project, is there a way to clean up the project (aka, remove any "compiled or cached code") and just run again.
My alternative now is to go thru github clone and bundle install again, but that means all of my modified changes have to be reapplied again. What is rails equivalent of "make clean" in Java? Is "rake clean" the answer? Do we need to run any bundle commands?
I am trying to get Composer do download the latest commit for the Behat/MinkSelenium2Driver package. That particular repo only has a master branch. I have tried every method I can think of, including deleting the files and letting it pull them back in, to get it to work but it doesn't.
How would I get it to pull in latest committed files or at least those from the commit I list below?
Specifically I want to get this commit:
https://github.com/Behat/MinkSelenium2Driver/commit/2e73d8134ec8526b6e742f05c146fec2d5e1b8d6
Thanks,
Patrick
Gitorious has been around longer and the two sites seem to cover the same ground, yet a quick Google Fight shows Github almost two orders of magnitude higher.
Is there a larger distinction that I'm not aware of?
Two of version controls uses seem to dictate different checkin styles.
distibution centric: changesets will generally reflect a complete feature. In general these checkins will be larger. This style is more user/maintainer friendly.
rollback centric: changesets will be individual small steps so the history can function like an incredibly powerful undo. In general these checkins will be smaller. This style is more developer friendly.
I like to use my version control as really powerful undo while while I banging away at some stubborn code/bug. In this way I'm not afraid to make drastic changes just to try out a possible solution. However, this seems to give me a fragmented file history with lots of "well that didn't work" checkins.
If instead I try to have my changeset reflect complete features I loose the use of my version control software for experimentation. However, it is much easier for user/maintainers to figure out how the code is evolving. Which has great advantages for code reviews, managing multiple branches, etc.
So what's a developer to do? checkin small steps or complete features?
I am working on a small project with gist and since it is growing I would like to put it on github.
Let's suppose that:
my gist repo is at: https://gist.github.com/1234
my new (empty) repo is at: https://github.com/ChrisJamesC/myNewProject
The ideal solution would be one that pushes my changes on both the gist and the github repository. However, if it is not possible I will prefer the solution where everything is on github and I delete the gist.
I have a large cross-cutting commit that I would like to split up according to the authors whose code was affected, both to increase the reviewers' familiarity with the code they're reviewing, and to divide the review burden equitably.
I realize that the blame may be mixed within a given hunk, in which case it would be nice to either collect multiple reviewers or just choose the most "blameworthy" one (breaking ties arbitrarily is fine).
I have the following situation:
A software hosted at github.
4 developers, each have her own fork in github.
Each developer creates and develops using branches in her own fork.
Given that we use branches to develop, we want to merge our branches (in our forks) to the upstream repo. How do I merge in github without using pull request? Is it possible to merge to upstream from my own fork?
Thanks in advance.
I am responsible for a small development team and we deal mainly with database development. We are currently using MS Visual Source Safe as our source control system, but it has its limitations and we are seriously thinking about changing. What system would you choose?
I'm doing a pull origin some_branch and can see there are a lot of changes. Eventually I don't mind if their erase all mine.
How can I accept them all instead or using mergetool and merge files one by one?
Not real information:
$ ssh-keygen -t rsa -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Tekkub/.ssh/id_rsa):
ssh.txt
I entered a file name here. Not sure if i should have,
Enter passphrase (empty for no passphrase):
I am stuck here. I type and it doesnt work
I am contributing code to an open source project which requires that no tabs exist in source code(only spaces). I am sure I have used tabs accidentally in some places, and want to clean up my code before I submit a patch. How can I find uses of tabs in a commit range?
It would be really nice if there is some easy way to see what have changed in a certain class (or other file) between two releases (1.6 & 2.1 for example). Does anyone know how to do this?
A way to do it online would be great but downloading the code and checking offline would be ok as well.
I have these two tables:
SQL> SELECT * FROM TAB_A;
MYDATE P4 D1 D2 P5 P6
--------- ---------- ---------- ----------- ----------- -----------
30-OCT-12 949,324 4,437,654 10,203,116 25,303,632 13,900,078
SQL> SELECT * FROM TAB_B;
MYDATE P4 D1 D2 P5 P6
--------- ---------- ---------- ----------- ----------- -----------
30-OCT-12 937,796 4,388,477 10,091,811 25,028,402 13,755,882
I need to subtract their respective columns and store the results into a third table like so:
SQL> INSERT INTO TAB_C (MYDATE, P4) SELECT SYSDATE,A.P4-B.P4 FROM TAB_A A,TAB_B B WHERE A.MYDATE=B.MYDATE;
SQL> SELECT * FROM TAB_C;
MYDATE P4 D1 D2 P5 P6
--------- ---------- ---------- ----------- ----------- -----------
30-OCT-12 926,268
The result is wrong. Basic math: 949324-937796=11528. Numeric values are stored as number datatypes. What am I missing here?
I've got a Rails app that's been running live for some time, and I'm planning to open source it in the near future. I'm wondering how dangerous it is to leave the session key store secret in source control while the app is live.
If it's dangerous, how do people usually handle this problem? I'd guess that it's easiest to just move the string to a text file that's ignored by the SCM, and read it in later.
Just for clarity, I'm talking about this:
# Your secret key for verifying cookie session data integrity.
# If you change this key, all old sessions will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
ActionController::Base.session = {
:key => '_application_session',
:secret => '(long, unique string)'
}
And while we're on the subject, is there anything else in a default Rails app that should be protected when open sourcing a live app?
I've been using the SHA1 hashes of my commits as references in documentation, etc. I've realized that if I need to rewrite those commits, I'll need to create a lookup table to correspond the hashes for the original repo with the hashes for the filtered repo. Since these are effectively UUID's, a simple lookup table would do.
I think that it's relatively straightforward to write a script to do this during a filter-branch run; that's not really my question, though if there are some gotchas that make it complicated, I'd certainly like to hear about them. I'm really wondering if there are any tools that provide this functionality, or if there is some sort of convention on where to keep the lookup table/what to call it? I'd prefer not to do things in a completely idiosyncratic way.
If I had:
1 developer per project, and there was
only one central repository, and it was
in the same LAN as the developers computers,
would still a DVCS have any advantage over a centralized (SVN, etc) one?
And what about the other advantages of the main DVCSes have over SVN?
I'm getting a strange error when doing bundle install:
$ bundle install
Fetching source index for http://rubygems.org/
rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:304
:in `open_uri_or_path': bad response Not Found 404
(http://rubygems.org/quick/Marshal.4.8/resque-scheduler-1.09.7.gemspec.rz)
(Gem::RemoteFetcher::FetchError)
I've tried bundle update, gem source -c, gem update --system, gem cleanup, etc etc.
Nothing seems to solve this.
I notice that the URL beginning with http://rubygems.org/quick does seem to be a 404 -- I don't think that's any problem with my network, though if that's reachable for anyone else then that would be a simple explanation for my problem.
More hints: If I just gem install resque-scheduler it works fine:
$ gem install resque-scheduler
Successfully installed resque-scheduler-1.9.7
1 gem installed
Installing ri documentation for resque-scheduler-1.9.7...
Installing RDoc documentation for resque-scheduler-1.9.7...
And here's my Gemfile:
source 'http://rubygems.org'
gem 'json'
gem 'rails', '>=3.0.0'
gem 'mongo'
gem 'mongo_mapper', :git => 'git://github.com/jnunemaker/mongomapper', :branch => 'rails3'
gem 'bson_ext', '1.1'
gem 'bson', '1.1'
gem 'mm-multi-parameter-attributes', :git=>'git://github.com/rlivsey/mm-multi-parameter-attributes.git'
gem 'devise', '~>1.1.3'
gem 'devise_invitable', '~> 0.3.4'
gem 'devise-mongo_mapper', :git => 'git://github.com/collectiveidea/devise-mongo_mapper'
gem 'carrierwave', :git => 'git://github.com/rsofaer/carrierwave.git' , :branch => 'master'
gem 'mini_magick'
gem 'jquery-rails', '>= 0.2.6'
gem 'resque'
gem 'resque-scheduler'
gem 'SystemTimer'
gem 'capistrano'
gem 'will_paginate', '3.0.pre2'
gem 'twitter', '~> 1.0.0'
gem 'oauth', '~> 0.4.4'