-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
e2d3447
commit 8c69305
Showing
35 changed files
with
445 additions
and
81 deletions.
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
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,35 @@ | ||
# frozen_string_literal: true | ||
# Load DSL and Setup Up Stages | ||
require 'capistrano/setup' | ||
|
||
# Includes default deployment tasks | ||
require 'capistrano/deploy' | ||
|
||
require 'capistrano/safe_deploy_to' | ||
|
||
require 'capistrano/postgresql' | ||
|
||
require 'capistrano/unicorn_nginx' | ||
|
||
# require 'capistrano/memcached' | ||
|
||
# require 'whenever/capistrano' | ||
|
||
# Includes tasks from other gems included in your Gemfile | ||
require 'capistrano/bundler' | ||
require 'capistrano/rails' | ||
|
||
require 'rvm1/capistrano3' | ||
|
||
# require 'capistrano/faster_assets' | ||
|
||
# require 'capistrano/wal_e' | ||
|
||
require 'capistrano/sidekiq' | ||
require 'capistrano/sidekiq/monit' | ||
|
||
require 'capistrano/scm/git' | ||
install_plugin Capistrano::SCM::Git | ||
|
||
# Loads 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
web: bundle exec puma -C config/puma.rb | ||
resque: env QUEUE=* TERM_CHILD=1 bundle exec rake resque:work | ||
web: bundle exec unicorn -C config/unicorn.rb | ||
sidekiq: bundle exec sidekiq -C config/sidekiq.yml |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# frozen_string_literal: true | ||
class SubmissionCheckWorker | ||
include Sidekiq::Worker | ||
sidekiq_options queue: 'high' | ||
|
||
def perform(submission_id) | ||
submission = Submission.find(submission_id) | ||
submission.run_tests | ||
end | ||
end |
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
Oops, something went wrong.