Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Finish capifony configuration

  • Loading branch information...
commit 9ee266f29264e5ca7e34b3513ee48a210eb0c991 1 parent 7e03db1
@cursedcoder cursedcoder authored
View
2  .gitignore
@@ -19,8 +19,6 @@
/app/config/parameters.yml
/app/config/parameters.*.yml
/app/config/deploy/*
-!/app/config/deploy/prod.rb.dist
-!/app/config/deploy/staging.rb.dist
composer.phar
bin/*
!bin/update-all-bundles.sh
View
4 Capfile
@@ -1,4 +1,4 @@
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/**/Resources/recipes/*.rb'].each { |bundle| load(bundle) }
-require 'capifony_symfony2'
-load 'app/config/deploy'
+load Gem.find_files('symfony2.rb').first.to_s
+load 'app/config/deploy'
View
54 app/config/deploy.rb
@@ -1,38 +1,33 @@
-set :mainrepo, "KnpLabs"
-set :stages, %w(prod staging)
-set :default_stage, "staging"
-set :stage_dir, "app/config/deploy"
-require 'capistrano/ext/multistage'
+set :stages, %w(production staging)
+set :default_stage, "staging"
+set :stage_dir, "app/config/deploy"
-set :application, "KnpBundles.com"
-set :app_path, "app"
-set :group_writable, false
-set :use_sudo, false
+require 'capistrano/ext/multistage'
-ssh_options[:port] = "22123"
-ssh_options[:forward_agent] = true
-default_run_options[:pty] = true
+set :application, "KnpBundles.com"
+set :app_path, "app"
+set :symfony_console, "app/console"
+set :group_writable, false
+set :use_sudo, false
-set :repository, "git@github.com:#{mainrepo}/KnpBundles.git"
-set :scm, :git
-set :deploy_via, :remote_cache
+set :repository, "git://github.com/KnpLabs/KnpBundles.git"
+set :scm, :git
+set :deploy_via, :remote_cache
-set :model_manager, "doctrine"
-set :admin_runner, nil
+set :model_manager, "doctrine"
+set :admin_runner, nil
+set :keep_releases, 2
-set :keep_releases, 2
+set :shared_files, ["app/config/parameters.yml", "bin/launch-rabbit-consumers.sh", "app/Resources/java"]
+set :shared_children, [app_path + "/logs"]
+set :use_composer, true
+set :update_vendors, false
-set :shared_files, ["app/config/parameters.yml"]
-set :shared_children, [app_path + "/logs", web_path + "/uploads", app_path + "/sessions"]
-set :use_composer, true
-set :update_vendors, true
-set :vendors_mode, "install"
-set :dump_assetic_assets, true
-set :interactive_mode, false
-set :use_sudo, false
+set :dump_assetic_assets, true
+set :interactive_mode, false
+set :use_sudo, false
-before 'symfony:composer:update', 'symfony:copy_vendors'
-before 'symfony:cache:warmup', 'symfony:force_migrate'
+before 'symfony:composer:install', 'symfony:copy_vendors'
namespace :symfony do
desc "Copy vendors from previous release"
@@ -43,4 +38,5 @@
end
end
-logger.level = Logger::MAX_LEVEL
+# Be more verbose by uncommenting the following line
+# logger.level = Logger::MAX_LEVEL
View
6 app/config/deploy/prod.rb.dist
@@ -1,6 +0,0 @@
-server 'KnpBundles.com', :app, :web, :db, :primary => true
-set :domain, "KnpBundles.com"
-set :deploy_to, "/home/knpbundles/sites/KnpBundles-prod/site"
-set :branch, "master"
-set :user, "user"
-set :password, "password"
View
7 app/config/deploy/production.rb.dist
@@ -0,0 +1,7 @@
+server 'KnpBundles.com', :app, :web, :db, :primary => true
+
+set :domain, "knpbundles.local"
+set :deploy_to, "/path/to/knpbundles/production"
+set :user, "production-user"
+set :branch, "master"
+set :port, 27
View
11 app/config/deploy/staging.rb.dist
@@ -1,6 +1,7 @@
server 'KnpBundles.com', :app, :web, :db, :primary => true
-set :domain, "KnpBundles.com"
-set :deploy_to, "/home/knpbundles/sites/KnpBundles-staging/site"
-set :branch, "master"
-set :user, "user"
-set :password, "password"
+
+set :domain, "stage.knpbundles.local"
+set :deploy_to, "/path/to/knpbundles/staging"
+set :user, "staging-user"
+set :branch, "develop"
+set :port, 26
Please sign in to comment.
Something went wrong with that request. Please try again.