diff --git a/arkham.hect/init.rb b/arkham.hect/init.rb deleted file mode 100644 index 83560377..00000000 --- a/arkham.hect/init.rb +++ /dev/null @@ -1 +0,0 @@ -Hector.server_name = "arkham.irc" diff --git a/arkham.hect/nohup.out b/arkham.hect/nohup.out deleted file mode 100644 index e69de29b..00000000 diff --git a/config/deploy.rb b/config/deploy.rb deleted file mode 100644 index 6daeec88..00000000 --- a/config/deploy.rb +++ /dev/null @@ -1,71 +0,0 @@ -# config valid only for current version of Capistrano -lock '3.3.3' - -set :application, 'alice' -set :repo_url, 'git@github.com:CoralineAda/alice.git' - -# Default branch is :master -# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call - -# Default deploy_to directory is /var/www/my_app_name -set :deploy_to, '/home/coraline/alice/' - -# Default value for :scm is :git -# set :scm, :git - -# Default value for :format is :pretty -# set :format, :pretty - -# Default value for :log_level is :debug -# set :log_level, :debug - -# Default value for :pty is false -# set :pty, true - -# Default value for :linked_files is [] -# set :linked_files, fetch(:linked_files, []).push('config/database.yml') - -# Default value for linked_dirs is [] -# set :linked_dirs, fetch(:linked_dirs, []).push('bin', 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system') - -# Default value for default_env is {} -# set :default_env, { path: "/opt/ruby/bin:$PATH" } - -# Default value for keep_releases is 5 -# set :keep_releases, 5 - -namespace :deploy do - - run_locally do - begin - execute 'bundle exec rake commands:export' - rescue - end - end - - before :starting, :ensure_user do - on roles(:app), in: :groups, limit: 3, wait: 10 do - within release_path do - begin - execute :ruby, './alice.rb stop' - execute :ruby, 'db/commands/import.rb' - rescue - p "*** No daemon running, continuing" - end - end - end - end - - after :finishing, :notify do - on roles(:app), in: :groups, limit: 3, wait: 10 do - within release_path do - execute :cp, '/home/coraline/alice/common/mongoid.yml config/mongoid.yml' - execute :cp, '/home/coraline/alice/common/.env .env' - execute :bundle, "install --path /home/coraline/alice/common/vendor/bundle" - execute "ln -nfs /home/coraline/alice/common/vendor #{current_path}/vendor" - execute :ruby, 'alice.rb -e production -dvs --name alice --log log/alice.log --timeout 1 start' - end - end - end - -end diff --git a/config/deploy/production.rb b/config/deploy/production.rb deleted file mode 100644 index 1f1a6e5c..00000000 --- a/config/deploy/production.rb +++ /dev/null @@ -1,44 +0,0 @@ -# Simple Role Syntax -# ================== -# Supports bulk-adding hosts to roles, the primary server in each group -# is considered to be the first unless any hosts have the primary -# property set. Don't declare `role :all`, it's a meta role. - -set :stage, :production - -role :app, %w{coraline@irc.lonelyhackersclub.com} - -# Extended Server Syntax -# ====================== -# This can be used to drop a more detailed server definition into the -# server list. The second argument is a, or duck-types, Hash and is -# used to set extended properties on the server. - -server 'irc.lonelyhackersclub.com', user: 'coraline', roles: %w{app} - - -# Custom SSH Options -# ================== -# You may pass any option but keep in mind that net/ssh understands a -# limited set of options, consult[net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start). -# -# Global options -# -------------- -# set :ssh_options, { -# keys: %w(/home/rlisowski/.ssh/id_rsa), -# forward_agent: false, -# auth_methods: %w(password) -# } -# -# And/or per server (overrides global) -# ------------------------------------ -# server 'example.com', -# user: 'user_name', -# roles: %w{web app}, -# ssh_options: { -# user: 'user_name', # overrides user setting above -# keys: %w(/home/user_name/.ssh/id_rsa), -# forward_agent: false, -# auth_methods: %w(publickey password) -# # password: 'please use keys' -# } diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb deleted file mode 100644 index e664a6cd..00000000 --- a/config/deploy/staging.rb +++ /dev/null @@ -1,45 +0,0 @@ -# Simple Role Syntax -# ================== -# Supports bulk-adding hosts to roles, the primary server in each group -# is considered to be the first unless any hosts have the primary -# property set. Don't declare `role :all`, it's a meta role. - -role :app, %w{deploy@example.com} -role :web, %w{deploy@example.com} -role :db, %w{deploy@example.com} - - -# Extended Server Syntax -# ====================== -# This can be used to drop a more detailed server definition into the -# server list. The second argument is a, or duck-types, Hash and is -# used to set extended properties on the server. - -server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value - - -# Custom SSH Options -# ================== -# You may pass any option but keep in mind that net/ssh understands a -# limited set of options, consult[net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start). -# -# Global options -# -------------- -# set :ssh_options, { -# keys: %w(/home/rlisowski/.ssh/id_rsa), -# forward_agent: false, -# auth_methods: %w(password) -# } -# -# And/or per server (overrides global) -# ------------------------------------ -# server 'example.com', -# user: 'user_name', -# roles: %w{web app}, -# ssh_options: { -# user: 'user_name', # overrides user setting above -# keys: %w(/home/user_name/.ssh/id_rsa), -# forward_agent: false, -# auth_methods: %w(publickey password) -# # password: 'please use keys' -# } diff --git a/config/mongoid.yml b/config/mongoid.yml deleted file mode 100644 index 7ed3f9ab..00000000 --- a/config/mongoid.yml +++ /dev/null @@ -1,39 +0,0 @@ -development: - sessions: - default: - database: alice_dev - hosts: - - localhost:27017 - -test: - sessions: - default: - database: alice_test - hosts: - - localhost:27017 - -production: - sessions: - # Define the default session. - default: - # A session can have any number of hosts. Usually 1 for a single - # server setup, and at least 3 for a replica set. Hosts must be - # an array of host:port pairs. This session is single server. - hosts: - - <%= ENV['DB_HOST'] %> - # Define the default database name. - database: alicebot - # Since this database points at a session connected to MongoHQ, we must - # provide the authentication details. - username: <%= ENV['DB_USER'] %> - password: <%= ENV['DB_PASS'] %> - options: - allow_dynamic_fields: false - identity_map_enabled: true - include_root_in_json: true - include_type_for_serialization: true - scope_overwrite_exception: true - raise_not_found_error: false - skip_version_check: false - use_activesupport_time_zone: false - use_utc: true