email Git Linux: /etc/hosts committer config Git mta push
by bseanvt
leave a comment
Have Git Email Committers After Pushes
You need a Mail Transfer Agent MTA on the server. The easiest way is to install Sendmail, which Git uses by default.
apt-get install sendmail
Remember that /etc/hosts file needs the ip address to map to the domain name your sending mail from
# vim /etc/hosts 127.0.0.1 localhost localhost.localdomain 207.136.202.87 wwwexample.com
Sendmail has a tendency to hang when sending mail otherwise. To test sendmail
sendmail email@example.com this is a test how are you today world? .
The period on a line by itself denotes end of message and will terminate the prompt and deliver the message.
Now you need to configure Git to send email after it receives a “push” from a committer. You can add email addresses, or you can set up a mailing list to email all members. Either way, you accomplish this with the following command, just remember to cd into the git repository.
git config --add hooks.mailinglist "mailinglist@example.com"
Next you need to activate the post-receive hook, located in the hooks directory of your repository.
cp post-receive.sample post-receive
And uncomment the last line, which uses sendmail to deliver the commit message
# uncomment the last line but keep the period "." . /usr/share/doc/git-core/contrib/hooks/post-receive-email
All done. Now just make some changes to your source code, add and commit them and you should receive an email with all the details!
Programming: /etc/hosts 127.0.0.1 80 django domain hexxie.com localhost Rails resolve subdomain wildcard
by bseanvt
8 comments
Setup Wildcard Subdomain on Localhost for Development Work without /Etc/hosts TomFoolery
Step 1.
Open up your browser and visit http://www.hexxie.com. You can also go to anything.hexxie.com and everything.hexxie.com, which will resolve to your local machine (assuming it’s localhost at 127.0.0.1).
How it works
Super simple. I just pointed hexxie.com and *.hexxie.com to 127.0.0.1, which is your localhost address. If you’re on Rails just append the port number as usual. http://hexxie.com:3000 or on Django http://hexxie.com:8000. Or you can always fire those guys up on port :80 with sudo ./script/server -p80 for Rails
or sudo django-admin.py runserver 80
To set up your own just configure DNS to point your domain to 127.0.0.1 for the IP address. No more futzing with /etc/hosts
Originally got this tip from http://tbaggery.com/2010/03/04/smack-a-ho-st.html who has created his own service at smackaho.st
The word “Hexe” is German for “Witch”. I have a dog named “Hexxie” after the German word and that is the origin of the domain name hexxie.com, in case you’re wondering.


