# get package from https://packager.io
sudo rpm --import https://rpm.packager.io/key
echo "[openproject]
name=Repository for crohr/openproject application.
baseurl=https://rpm.packager.io/gh/crohr/openproject/centos6/packaging-rpm
enabled=1" | sudo tee /etc/yum.repos.d/openproject.repo
sudo yum install -y openproject
We have changed our check_url implementation from curl to wget for three reasons
- It gives us the ability to retry on connection refused. Compare the command we used previously with curl:
curl -sSfL --retry 3 URL
to the current one:
- Dropbox
- 1Password
- Chrome
- Skype
- divvy
- homebrew
- GPGSuite - https://gpgtools.org
- Spotify
Give ownership rights on database to role:
echo 'ALTER DATABASE "voice-messaging-api" OWNER TO "voicemsg"' | sudo su - postgres -c psql
Give CREATEDB
rights to role:
echo 'ALTER ROLE "voicemsg" CREATEDB' | sudo su - postgres -c psql
Let's say you wanted to install this plugin: https://github.com/finnlabs/openproject-meeting. Here is how you would do it with the openproject version packaged at https://pkgr.io/apps/tessi/openproject:
cat >> /opt/openproject/Gemfile.plugins <<EOF
gem "openproject-plugins", :git => "https://github.com/opf/openproject-plugins.git", :branch => "stable"
gem "openproject-meeting", :git => "https://github.com/finnlabs/openproject-meeting.git", :branch => "stable"
EOF
As per http://doc.gitlab.com/ce/install/installation.html#initialize-database-and-activate-advanced-features, running rake gitlab:setup
should setup the database. However, it only works if I'm following it with a rake db:migrate
, otherwise I get an error when trying to run a simple User.all
from the console:
root@ip-10-112-47-195:/home/admin# gitlabhq run rake gitlab:setup
This will create the necessary database tables and seed the database.
You will lose any previous data stored in the database.
Do you want to continue (yes/no)? yes
gitlabhq already exists
-- enable_extension("plpgsql")
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# capture root dir | |
root=$(pwd) | |
# change into subdir of archive | |
cd $root/yaml-* | |
env CFLAGS=-fPIC ./configure --enable-static --disable-shared --prefix=/app/vendor | |
make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Tunnel < Thor | |
method_options :environment => "development", :aliases => "-e", :desc => "Config environment" | |
desc "start", "Start an ssh tunnel" | |
def start | |
random_hi_port = rand(30000) + 30000 | |
identity_part = tunnel['identity_file'] ? "-i #{tunnel['identity_file']}" : "" | |
ssh_part = "ssh -t #{identity_part} -g -R *:#{random_hi_port}:0.0.0.0:#{tunnel['local_port']} #{tunnel['username']}@#{tunnel['public_host']}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'config/environment.rb' | |
class GlobalizeCountry < ActiveRecord::Base | |
end | |
class GlobalizeLanguage < ActiveRecord::Base | |
end | |
class GlobalizeTranslation < ActiveRecord::Base | |
belongs_to :language, :class_name => "GlobalizeLanguage" |