Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diaspora
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Milan
diaspora
Commits
e3d52bb4
Commit
e3d52bb4
authored
14 years ago
by
ilya
Browse files
Options
Downloads
Patches
Plain Diff
putting the config file in a shared directory for in the deploy scripts
parent
76f140aa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/deploy.rb
+6
-1
6 additions, 1 deletion
config/deploy.rb
db/seeds/backer.rb
+1
-1
1 addition, 1 deletion
db/seeds/backer.rb
db/seeds/tom.rb
+1
-1
1 addition, 1 deletion
db/seeds/tom.rb
with
8 additions
and
3 deletions
config/deploy.rb
+
6
−
1
View file @
e3d52bb4
...
...
@@ -53,6 +53,11 @@ namespace :deploy do
run
"ln -s -f
#{
shared_path
}
/bundle
#{
current_path
}
/vendor/bundle"
end
task
:symlink_config
do
run
"touch
#{
shared_path
}
/app_config.yml"
run
"ln -s -f
#{
shared_path
}
/app_config.yml
#{
current_path
}
/config/app_config.yml"
end
task
:start
do
start_mongo
start_thin
...
...
@@ -150,4 +155,4 @@ namespace :db do
end
after
"deploy:symlink"
,
"deploy:symlink_images"
,
"deploy:symlink_bundle"
after
"deploy:symlink"
,
"deploy:symlink_images"
,
"deploy:symlink_bundle"
,
'
deploy
:symlink_config
"
This diff is collapsed.
Click to expand it.
db/seeds/backer.rb
+
1
−
1
View file @
e3d52bb4
...
...
@@ -46,7 +46,7 @@ def set_app_config username
current_config
[
Rails
.
env
.
to_s
]
||=
{}
current_config
[
Rails
.
env
.
to_s
][
'pod_url'
]
=
"
#{
username
}
.joindiaspora.com"
current_config
[
'default'
][
'pod_url'
]
=
"
#{
username
}
.joindiaspora.com"
file
=
File
.
new
(
Rails
.
root
.
join
(
'
config
'
,
'app_config.yml'
),
'w'
)
file
=
File
.
new
(
Rails
.
root
.
join
(
'
..'
,
'shared
'
,
'app_config.yml'
),
'w'
)
file
.
write
(
current_config
.
to_yaml
)
file
.
close
end
This diff is collapsed.
Click to expand it.
db/seeds/tom.rb
+
1
−
1
View file @
e3d52bb4
...
...
@@ -11,7 +11,7 @@ def set_app_config username
current_config
[
Rails
.
env
.
to_s
]
||=
{}
current_config
[
Rails
.
env
.
to_s
][
'pod_url'
]
=
"
#{
username
}
.joindiaspora.com"
current_config
[
'default'
][
'pod_url'
]
=
"
#{
username
}
.joindiaspora.com"
file
=
File
.
new
(
Rails
.
root
.
join
(
'
config
'
,
'app_config.yml'
),
'w'
)
file
=
File
.
new
(
Rails
.
root
.
join
(
'
..'
,
'shared
'
,
'app_config.yml'
),
'w'
)
file
.
write
(
current_config
.
to_yaml
)
file
.
close
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment