Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
122 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,3 +102,5 @@ venv.bak/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
/static |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Load DSL and set up stages | ||
require "capistrano/setup" | ||
|
||
# Include default deployment tasks | ||
require "capistrano/deploy" | ||
|
||
# Load the SCM plugin appropriate to your project: | ||
# | ||
# require "capistrano/scm/hg" | ||
# install_plugin Capistrano::SCM::Hg | ||
# or | ||
# require "capistrano/scm/svn" | ||
# install_plugin Capistrano::SCM::Svn | ||
# or | ||
require "capistrano/scm/git" | ||
install_plugin Capistrano::SCM::Git | ||
|
||
# Include tasks from other gems included in your Gemfile | ||
# | ||
# For documentation on these, see for example: | ||
# | ||
# https://github.com/capistrano/rvm | ||
# https://github.com/capistrano/rbenv | ||
# https://github.com/capistrano/chruby | ||
# https://github.com/capistrano/bundler | ||
# https://github.com/capistrano/rails | ||
# https://github.com/capistrano/passenger | ||
# | ||
# require "capistrano/rvm" | ||
# require "capistrano/rbenv" | ||
# require "capistrano/chruby" | ||
# require "capistrano/bundler" | ||
# require "capistrano/rails/assets" | ||
# require "capistrano/rails/migrations" | ||
require "capistrano/passenger" | ||
require "capistrano/django/venv" | ||
|
||
# Load custom tasks from `lib/capistrano/tasks` if you have any defined | ||
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r } |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | ||
|
||
gem 'capistrano-django-venv', github: 'tnantoka/capistrano-django-venv' | ||
gem 'capistrano-passenger' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
GIT | ||
remote: https://github.com/tnantoka/capistrano-django-venv | ||
revision: 2038342d829253b51420d2020d84ca641a932e1d | ||
specs: | ||
capistrano-django-venv (0.1.0) | ||
capistrano (~> 3) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
airbrussh (1.3.0) | ||
sshkit (>= 1.6.1, != 1.7.0) | ||
capistrano (3.11.0) | ||
airbrussh (>= 1.0.0) | ||
i18n | ||
rake (>= 10.0.0) | ||
sshkit (>= 1.9.0) | ||
capistrano-passenger (0.2.0) | ||
capistrano (~> 3.0) | ||
concurrent-ruby (1.0.5) | ||
i18n (1.1.0) | ||
concurrent-ruby (~> 1.0) | ||
net-scp (1.2.1) | ||
net-ssh (>= 2.6.5) | ||
net-ssh (5.0.2) | ||
rake (12.3.1) | ||
sshkit (1.17.0) | ||
net-scp (>= 1.1.2) | ||
net-ssh (>= 2.8.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
capistrano-django-venv! | ||
capistrano-passenger | ||
|
||
BUNDLED WITH | ||
1.16.4 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
lock '~> 3.11.0' | ||
|
||
set :application, 'timecrowd-django-example' | ||
set :repo_url, 'git@github.com:timecrowd-blog/timecrowd-django-example.git' | ||
set :deploy_to, '/var/www/timecrowd-django-example' | ||
|
||
set :project, 'mysite' | ||
append :linked_files, 'mysite/.env' | ||
append :linked_dirs, 'venv', 'public/static' | ||
|
||
set :passenger_restart_with_touch, true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
server 'timecrowd-blog', roles: %w{app db web} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<VirtualHost *:80> | ||
ServerName django.blog.timecrowd.net | ||
|
||
DocumentRoot /var/www/timecrowd-django-example/current/public | ||
PassengerAppRoot /var/www/timecrowd-django-example/current | ||
|
||
PassengerAppType wsgi | ||
PassengerStartupFile /var/www/timecrowd-django-example/current/mysite/mysite/wsgi.py | ||
PassengerPython /var/www/timecrowd-django-example/current/venv/bin/python | ||
|
||
<Directory /var/www/timecrowd-django-example/current> | ||
Allow from all | ||
Options -MultiViews | ||
Options FollowSymLinks | ||
</Directory> | ||
</VirtualHost> |
This file contains 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
This file contains 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