Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release_path error deploy faild #346

Closed
tsaomichael opened this issue Oct 15, 2015 · 3 comments
Closed

release_path error deploy faild #346

tsaomichael opened this issue Oct 15, 2015 · 3 comments

Comments

@tsaomichael
Copy link

mina deploy -v
-----> Symlinking shared paths
$ mkdir -p "."
$ rm -rf "./log"
$ ln -s "/home/node/pepper_develop/shared/log" "./log"
$ rm -rf "./node_modules"
$ ln -s "/home/node/pepper_develop/shared/node_modules" "./node_modules"
npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g
-----> Deploy finished
-----> Building
-----> Moving build to releases/2
$ mv "$build_path" "$release_path"
$ cd "$release_path"
-----> Build finished
-----> Launching
-----> Updating the current symlink
$ ln -nfs "$release_path" "current"
-----> Launching
$ cd "$release_path"
! ERROR: Deploy failed.
-----> Cleaning up build
Deleting release
$ rm -rf "$release_path"
Unlinking current
$ ln -nfs "$previous_path" "current"
$ rm -f "deploy.lock"

can you help me,thanks?

@flowerett
Copy link
Contributor

Seems like your node daemon could not start properly and retuns an error, try to check the log.

@tsaomichael
Copy link
Author

thanks for your reply.but.my setting below

set :deploy_to, '/home/node/pepper_develop'
set :branch, 'develop'
set :env, 'develop'
set :user, 'node'
set :repository, '[email protected]:xxxx/aaaa.git'
set :domain, '123.1.1.1'
set :term_mode, nil
set :shared_paths, ['log', 'node_modules']

task :setup do
queue "mkdir -p #{deploy_to}/shared/log"
queue "chmod g+rx,u+rwx #{deploy_to}/shared/log"

queue "mkdir -p #{deploy_to}/shared/node_modules"
queue "chmod g+rx,u+rwx #{deploy_to}/shared/node_modules"
end

desc "Deploys the current version to the server."
task :deploy do
deploy do
invoke :'git:clone'
invoke :'deploy:link_shared_paths'
queue "npm install"
to :launch do
queue "forever stopall"
queue "forever start bin/www"
end
end
end

@Freeza91
Copy link
Contributor

release_path isn't suitable path to start server
maybe #349 will help for that

@d4be4st d4be4st closed this as completed Jul 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants