How can I fork and use it?
eldad87 opened this issue · comments
Hi,
I'd like to make some changes to your tmp namespace.
Can you please explain how can I work my changes (from a fork on git)?
Please note that I'm a PHP developer and I have 0 experience with ruby.
Thanks!
@eldad87 fork and clone this repo (not matter which folder).
Then create a dummy project with Minafile at root folder, at top of Minafile add this:
$:.push "_FULL_PATH_WHERE_YOU_CLONED_/mina-cakephp/lib"
This is mine:
$:.push "/var/www/daniel/mina/mina-cakephp/lib"
$:.push "/var/www/daniel/mina/mina-composer/lib"
require 'mina/git'
require 'mina-cakephp'
require 'mina-composer'
set :domain, 'vps.danielpk.com.br'
set :deploy_to, '/var/www/tests/my-app'
set :repository, 'private-repo.danielpk.com.br/app-test.git'
set :user, 'root'
set :shared_paths, ['Config/database.php', 'tmp']
#CakePHP Config
set :cake_path, '/var/www/tests/my-app/cakephp'
set :cake_database, {
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'root',
'password' => 'passoword',
'database' => 'test',
'prefix' => ''
}
task :deploy do
deploy do
invoke :'git:clone'
invoke :'deploy:link_shared_paths'
invoke :'cakephp:cake_core_path'
invoke :'cakephp:debug_zero'
invoke :'cakephp:tmp:clean_cache'
invoke :'cakephp:asset_compress:setup'
invoke :'cakephp:asset_compress:build'
to :launch do
invoke :'cakephp:migrations:run_all'
end
end
end
desc "Custom setup commands"
task :setup do
#Clone CakePHP Core into cake_path
invoke :'cakephp:git:clone'
end
Very nice!
Please share the mina-composer.
for my project, I just added a new task for it:
# Task to run composer
task :composer do
# run composer
queue 'composer install'
end
thanks!
We have a public repository(https://github.com/mobvox/mina-composer). But need more tests before release stable version.