Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
leap_se
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WhilelM
leap_se
Commits
06ceabbb
Commit
06ceabbb
authored
Apr 26, 2015
by
elijah
Browse files
Options
Downloads
Patches
Plain Diff
added capistrano configs.
parent
783be829
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Capfile
+8
-0
8 additions, 0 deletions
Capfile
README.md
+12
-1
12 additions, 1 deletion
README.md
config/deploy.rb
+36
-0
36 additions, 0 deletions
config/deploy.rb
config/deploy/production.rb
+8
-0
8 additions, 0 deletions
config/deploy/production.rb
with
64 additions
and
1 deletion
Capfile
0 → 100644
+
8
−
0
View file @
06ceabbb
require
'capistrano/setup'
require
'capistrano/deploy'
#
# this will allow you to run `cap deploy`
# instead of `cap production deploy`.
#
invoke
:production
This diff is collapsed.
Click to expand it.
README.md
+
12
−
1
View file @
06ceabbb
...
...
@@ -9,5 +9,16 @@ render the source files into html files.
To submit changes, please fork this repo and issue pull requests on github.
For more information how to use
`amber`
, see: https://github.com/leapcode/amber.
For more information how to use
`amber`
, see:
https://github.com/leapcode/amber.
For now, there is no post-commit hook on this repo that automatically triggers
an update to the website. To deploy the current version:
sudo gem install capistrano
git clone https://leap.se/git/leap_se
cd leap_se
cap deploy
This will deploy directly from master branch of https://leap.se/git/leap_se
(in other words, local changes are not deployed).
\ No newline at end of file
This diff is collapsed.
Click to expand it.
config/deploy.rb
0 → 100644
+
36
−
0
View file @
06ceabbb
set
:application
,
"leap_se"
set
:deploy_to
,
"/home/website/leap-website"
set
:scm
,
:git
set
:repo_url
,
"https://leap.se/git/leap_se"
set
:branch
,
"master"
set
:deploy_via
,
:remote_cache
set
:use_sudo
,
false
set
:keep_releases
,
2
# use system gems:
set
:default_environment
,
{
'GEM_PATH'
=>
''
,
'GEM_HOME'
=>
''
}
namespace
:leap
do
task
:link_to_chiliproject
do
on
roles
(
:all
)
do
|
host
|
execute
"rm -f
#{
current_path
}
/public/code"
execute
"ln -s /var/www/redmine/public
#{
current_path
}
/public/code"
end
end
end
namespace
:amber
do
task
:rebuild
do
on
roles
(
:all
)
do
|
host
|
within
release_path
do
execute
:amber
,
'rebuild'
end
end
end
end
after
"deploy:updated"
,
"amber:rebuild"
before
"deploy:published"
,
"leap:link_to_chiliproject"
This diff is collapsed.
Click to expand it.
config/deploy/production.rb
0 → 100644
+
8
−
0
View file @
06ceabbb
server
'hare.leap.se'
,
roles
:[
'app'
],
user
:'website'
,
port:
22
,
ssh_options:
{
auth_methods:
[
'publickey'
],
forward_agent:
false
}
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