Using Installation Script
Elastic Server Installation
Manual Installation
This page describes scripted and manual steps for setting up a build server. These steps are specific to Debian (5.0 Lenny), so for other systems/distributions the package names and commands may be different.
This script has been tested on Debian Lenny, and may require manual modification for other distributions. Feel free to send us any modifications you needed for any particular distribution.
setup.sh cgi
See our Elastic Server bundles listed here.
Follow these installation steps:
useradd -s /bin/bash -m -g www-data deploy; passwd deploy
su deploy
cd /tmp
git clone git://git.assembla.com/server-tools.git
cp -rf server-tools/assembla /home/deploy/
mkdir /home/deploy/assembla/tmp
rm /home/deploy/assembla/deploy*.rb
rm /home/deploy/assembla/config.ru
chown -R deploy:www-data /home/deploy/assembla
rm -rf server-tools
cd /home/deploy
sudo -u deploy ssh-keygen -q -t dsa
cd .ssh
cat id_dsa.pub >> authorized_keys
/etc/apache2/conf.d/assembla:ScriptAlias /assembla/ /home/deploy/assembla/cgi-bin/
<Directory "/home/deploy/assembla/cgi-bin">
AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
/etc/init.d/apache2 reload
visudo and add this line to enable the apache user to run commands as the deploy user:www-data ALL=(deploy)NOPASSWD: /usr/bin/ssh-keygen,/home/deploy/assembla/bin/deploy.sh,/home/deploy/assembla/bin/save_config.sh