thecfguy

A Unique Developer

How to change default port for GitLab

All below instructions are for Gitlab version 7.0.0.
 

As suggested on https://github.com/gitlabhq/gitlabhq/issues/6581 you can configure port on below file.

  1. Change port to 81 (You can choose your own) at port: near by production:$base >> gitlab: for file /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
  2. Change your host address if you like to use different from your ip address or localhost
  3. Change server port to 81 in file "/opt/gitlab/embedded/conf/nginx.conf"
  4. Restart gitlab using command "sudo gitlab-ctl restart".
Tags: nginx, gitlab
Comments(0)
AWS RDS (MySQL) error you *might* want to use the less safe log_bin_trust_function_creators variable) for function creation.

Recently moving one of our client to AWS Cloud for project built on RAILO and MYSQL. Maninly two issue face during MYSQL migration. 

  1. Default timezone for MySql is UTC and there is not way to change per RDS instance.
  2. Error occured while creating function with message "You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)"
Comments(0)
Calling LinkedIn API from RAILO with CFHTTP generate error

Since couple of weeks working with various social API integration in RAILO and most of the API I was calling using CFHTTP tag. While creating API for LinkedIn I start getting error since LinkedIn wasn't able to resolve URL that I was sending. From error message it turn out that RAILO encode full URL instead of only query paramters. Below is code for LinkedIn API to get people search where URL itself contains special characters like ), : etc. which are encoded while passing it through CFHTTP.

Comments(0)
ColdFusion vs Railo behavior difference scope assignment.
By Pritesh

While working with one of the project I have notice different behaviour between ColdFusion and RAILO while using any scope as variable. I do not advise to use any CFML keywords/function name/scope name to use as variables although it doesn't complaining about it but as a human we do mistakes and we learn. Normally I have notice that people are using "url" as variable to store API url etc. But if you are working on website or project which support multiple platform then you may find behaviour difference.

Tags: ColdFusin, Railo
Comments(0)
Transferring Mura comments to Disqus

I had hard time to adding captcha to my mura blog, actually I do not want to make much changes due to lack of time so I just keep comment box open to all without any captcha but required approval before publish thinking only good people live on earth :). And from next day my mail box flood with comment required for approval. Ofcourse none them was genuine comments so I was clearing comments instead of doing some productive work. To avoid this headache thought to move comment on Disqus so there will less spamming issue. There is great plugin made by Steve for inserting Disqus comments and really easy to install as well. So my blog now has disqus comment box but I really do not want loose my old genuine comments entered by readers. 

Comments(0)