Skip to content

Instantly share code, notes, and snippets.

View phlegx's full-sized avatar
💪
never stop coding

Phlegx Systems phlegx

💪
never stop coding
View GitHub Profile
## deploy.rb
namespace :doc do
desc "Generate documentation"
task :setup do
`yardoc app`
end
end
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
127.0.0.1 localhost
127.0.1.1 user-ThinkPad-T410
138.232.xx.xxx widget.example.com
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
git push -f
Counting objects: 223, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (91/91), done.
Writing objects: 100% (157/157), 25.68 KiB, done.
Total 157 (delta 84), reused 131 (delta 64)
remote: + refs/heads/master username DENIED by refs/heads/master
remote: error: hook declined to update refs/heads/master
To gitolite@code.example.com:my_project
+ d19e304...db40b3d development -> development (forced update)
bundle
Fetching source index for http://rubygems.org/
Fetching source index for https://gems.example.com/
Could not reach rubygems repository http://rubygems.org/, https://gems.example.com/
Could not find gem 'my_gem (~> 0.1.2) ruby' in any of the gem sources listed in your Gemfile.
source "http://rubygems.org"
source 'https://gems.example.com'
gemspec
gem 'my_gem', '~> 0.1.2'
rm -rf /var/lib/gitolite/my_project
cd /var/lib/gitolite
git clone --no-hardlinks /var/lib/gitolite/repositories/my_project.git
echo "rvm use 1.9.3@gemserver --create" > /var/lib/gitolite/my_project/.rvmrc
echo "export rvm_trust_rvmrcs_flag=1" >> /var/lib/gitolite/my_project/.rvmrc
cd /var/lib/gitolite/my_project
gem env
<?xml version="1.0" encoding="UTF-8"?>
<testsuites errors="0" failures="0" skipped="12" tests="76" time="122.479098532" timestamp="2013-01-22T17:33:31+01:00">
<testsuite name="Adapter::Generic::ImageAdapter" tests="5" errors="0" failures="0" skipped="0">
<properties/>
<testcase name="Adapter::Generic::ImageAdapter should have a valid response after posting an image." time="9.795598445">
</testcase>
<testcase name="Adapter::Generic::ImageAdapter should not publish a nil reference" time="0.007955988">
</testcase>
.....
</testsuites>
File upload failed. Reason:
(aufteilung_raid1.png) Internal error, could not move the file.
You cannot specify the same gem twice coming from different sources. You specified that my_model (>= 0) should come from gitolite@example.com:my_model (at development) and gitolite@example.com:my_model (at master)