mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Add proper REGISTRY_ENV names: eedirect and admin
This commit is contained in:
parent
7883b3775f
commit
ec776f9d06
3 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,7 @@ class Ability
|
||||||
|
|
||||||
if Rails.env.production?
|
if Rails.env.production?
|
||||||
case REGISTRY_ENV
|
case REGISTRY_ENV
|
||||||
when :client
|
when :eedirect
|
||||||
can :create, :session
|
can :create, :session
|
||||||
admin = false
|
admin = false
|
||||||
when :admin
|
when :admin
|
||||||
|
|
|
@ -11,12 +11,12 @@ require 'mina/git'
|
||||||
# branch - Branch name to deploy. (needed by mina/git)
|
# branch - Branch name to deploy. (needed by mina/git)
|
||||||
|
|
||||||
set :domain, 'testregistry'
|
set :domain, 'testregistry'
|
||||||
set :deploy_to, '/home/app/registry'
|
set :deploy_to, '/home/app/eedirect'
|
||||||
set :repository, 'https://github.com/internetee/registry'
|
set :repository, 'https://github.com/internetee/registry'
|
||||||
set :branch, 'master'
|
set :branch, 'master'
|
||||||
|
|
||||||
task :admin do
|
task :admin do
|
||||||
set :deploy_to, '/home/app/admin-registry'
|
set :deploy_to, '/home/app/registry'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
|
# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
# options: :admin, :client
|
# options: :admin, :eedirect
|
||||||
REGISTRY_ENV = :client
|
REGISTRY_ENV = :eedirect
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue