For new users, the idea of spending a WordPress site from one place to another can be scary. There’s all of the database business, themes, plugins and file to think, not to mention self WordPress. If you are accustomed to working with static sites and move some HTML files, all
Read more at the sourceCategory Archives: server
Nginx: Block access to certain parts of your app based on visitor country
It may be a good idea to enable some parts of your application based on a user country. You could do this on an application level: But why would you want to store non-business logic like this in your app? There’s a much better solution: you can use the Nginx GeoIP Module. To do […]
Running GitLab 7.1 using Puma instead of a Unicorn
Warning Warning! Before you do this, please read why you should’nt: why did gitlab 6 switch back to unicorn? So now, when let’s get started… Gemfile updates Nothing special here. Just add: and then: Puma config Create a puma.rb file in your gitlab config dir and copy/paste this: and At this point, you should be […]
Read more at the sourceAllowing user to set environment variable with sudo
I encountered the following error today while installing a few packages on a ubuntu server using a sudo user. “sudo: sorry, you are not allowed to set the following environment variables: DEBIAN_FRONTEND” The command I ran was: “sudo DEBIAN_FRONTEND=noninteractive apt-get install -qy git-core” I did search on google and did’nt find any direct answer for [ Read More ]
Read more at the source