5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/inploy/templates/rails3_push.rb', line 5
def remote_setup
command = []
command << "mkdir -p #{application_path}"
command << "cd #{application_path}"
command << "git init"
command << "sed -i'' -e 's/master/#{branch}/' .git/HEAD" unless branch == 'master'
command << "git config --bool receive.denyNonFastForwards false"
command << "git config receive.denyCurrentBranch ignore"
remote_run command.join(' && ')
push_code
command = []
command << "cd #{application_path}"
command << "rake inploy:local:setup RAILS_ENV=#{environment} environment=#{environment}#{skip_steps_cmd}"
remote_run command.join(' && ')
end
|