Merge branch 'master' of github.com:internetee/registry

This commit is contained in:
Martin Lensment 2014-09-25 14:20:00 +03:00
commit 662806d8c9
7 changed files with 22 additions and 23 deletions

View file

@ -6,8 +6,6 @@ AllCops:
# stuff generated by AR and rails
- 'db/schema.rb'
- 'db/migrate/*'
# spring generated stuff
- 'bin/*'
# epp support files until 'complexity issues' will be solved
- 'spec/support/epp.rb'
- 'spec/support/epp_contact_xml_builder.rb'

View file

@ -115,4 +115,3 @@ group :development, :test do
# For unique IDs (used by the epp gem)
gem 'uuidtools', '~> 2.1.4'
end

View file

@ -2,6 +2,7 @@
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError
puts 'no spring'
end
APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot'

View file

@ -2,6 +2,7 @@
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError
puts 'no spring'
end
require_relative '../config/boot'
require 'rake'

View file

@ -7,9 +7,10 @@ unless defined?(Spring)
require 'rubygems'
require 'bundler'
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
if match
ENV['GEM_PATH'] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
ENV['GEM_HOME'] = ''
ENV['GEM_HOME'] = nil
Gem.paths = ENV
gem 'spring', match[1]

View file

@ -18,9 +18,9 @@ set :branch, 'master'
# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
# They will be linked in the 'deploy:link_shared_paths' step.
set :shared_paths, [
'config/database.yml',
'config/secrets.yml',
'log',
'config/database.yml',
'config/secrets.yml',
'log',
'public/system'
]
@ -42,25 +42,25 @@ end
# Put any custom mkdir's in here for when `mina setup` is ran.
# For Rails apps, we'll make some of the shared paths that are shared between
# all releases.
task :setup => :environment do
queue! %[mkdir -p "#{deploy_to}/shared/log"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/log"]
task setup: :environment do
queue! %(mkdir -p "#{deploy_to}/shared/log")
queue! %(chmod g+rx,u+rwx "#{deploy_to}/shared/log")
queue! %[mkdir -p "#{deploy_to}/shared/config"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/config"]
queue! %(mkdir -p "#{deploy_to}/shared/config")
queue! %(chmod g+rx,u+rwx "#{deploy_to}/shared/config")
queue! %[mkdir -p "#{deploy_to}/shared/public"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/public"]
queue! %(mkdir -p "#{deploy_to}/shared/public")
queue! %(chmod g+rx,u+rwx "#{deploy_to}/shared/public")
queue! %[mkdir -p "#{deploy_to}/shared/public/system"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/public/system"]
queue! %(mkdir -p "#{deploy_to}/shared/public/system")
queue! %(chmod g+rx,u+rwx "#{deploy_to}/shared/public/system")
queue! %[touch "#{deploy_to}/shared/config/database.yml"]
queue %[echo "-----> Be sure to edit 'shared/config/database.yml'."]
queue! %(touch "#{deploy_to}/shared/config/database.yml")
queue %(echo '-----> Be sure to edit 'shared/config/database.yml'.')
end
desc "Deploys the current version to the server."
task :deploy => :environment do
desc 'Deploys the current version to the server.'
task deploy: :environment do
deploy do
# Put things that will set up an empty directory into a fully set-up
# instance of your project.
@ -82,4 +82,3 @@ end
# - http://nadarei.co/mina/tasks
# - http://nadarei.co/mina/settings
# - http://nadarei.co/mina/helpers

View file

@ -1,4 +1,4 @@
if Rails.env.test?
if Rails.env.test? || Rails.env.development?
require 'rspec/core/rake_task'
require 'open3'