rake aborted when create database
Closed
rake aborted when create database
Created by: adhown
$sudo -u gitlab bundle exec rake gitlab:app:setup RAILS_ENV=production
WARNING: using the built-in Timeout class which is known to have issues when used for opening connections. Install the SystemTimer gem if you want to make sure the Redis client will not hang. rake aborted! /home/gitlab/gitlab/lib/tasks/bulk_import.rake:78: syntax error, unexpected ':', expecting ')' name: project_name, ^ /home/gitlab/gitlab/lib/tasks/bulk_import.rake:79: syntax error, unexpected ':', expecting '=' code: project_name, ^ /home/gitlab/gitlab/lib/tasks/bulk_import.rake:80: syntax error, unexpected ':', expecting '=' path: project_name, ^ /home/gitlab/gitlab/lib/tasks/bulk_import.rake:81: syntax error, unexpected ':', expecting '=' owner: user, ^ /home/gitlab/gitlab/lib/tasks/bulk_import.rake:82: syntax error, unexpected ':', expecting '=' description: "Automatically created from R... ^ /home/gitlab/gitlab/lib/tasks/bulk_import.rake:83: syntax error, unexpected ')', expecting kEND /home/gitlab/gitlab/lib/tasks/bulk_import.rake:107: syntax error, unexpected kELSE, expecting kEND /home/gitlab/gitlab/lib/tasks/bulk_import.rake:111: syntax error, unexpected $end, expecting kEND
(See full trace by running task with --trace)
I can't install ruby1.9.2 :( .. do you any idea for fix this problem?
Created by: zx1986
@adhown I think you could install Ruby with rvm. here is my setup note: http://zx-1986.blogspot.com/2012/03/setup-gitlab-in-rhel-6.html
rvm is pretty easy to use!
By Administrator on 2012-05-10T15:31:30 (imported from GitLab project)
Created by: zx1986
@adhown you have to setup a SSH key in your Gitlab first, check the "Set up SSH keys" part: http://help.github.com/linux-set-up-git/
you want automatic git push your local repository (files, codes, etc.) to your Gitlab ? I think you will do that with a cron job that running a shell script like below ?
#!/bin/bash cd /path/to/your-repository git add . git commit -m "auto update by a cron job" git push -u origin master # origin is a remote refs to your Gitlab server
By Administrator on 2012-05-11T01:00:10 (imported from GitLab project)
Created by: adhown
@zx1986 yes, I already setup SSH keys, and create my own repositories on my gitlab.
your shell script just commit from local machine to my gitlab.. Now I have a code in my local machine , gitlab , and webserver machine. How to make my gitlab automatic update to webserver when I commit in local machine? :) ..
By Administrator on 2012-05-11T01:11:18 (imported from GitLab project)
Created by: zx1986
oh! maybe you could setup a incrond job on you Gitlab server, or setup a cron job on your webserver, but both were not a good idea I think, we should need a deploy tool.
https://github.com/capistrano/capistrano
https://github.com/mislav/git-deploy https://github.com/apinstein/git-deployment https://github.com/BrunoDeBarros/git-deploy-php
By Administrator on 2012-05-11T01:19:36 (imported from GitLab project)
Created by: adhown
@zx1986 I find tutorial how to automated deployment using git..
http://www.saintsjd.com/2011/03/automated-deployment-of-wordpress-using-git/ http://newtriks.com/2011/12/01/automated-deployment-using-git/
but I am confusing, whether it's same with gitlab?
By Administrator on 2012-05-11T02:03:51 (imported from GitLab project)