-
Notifications
You must be signed in to change notification settings - Fork 50
Howto configure a dev account
First, email the dev list to get an account. Let them know the username you want. You'll get a reply with login credentials and database credentials. For this tutorial, we'll pretend your username is "foo".
You'll need to ssh into your account. On linux and OS X, you can just use "ssh" in a terminal:
On Windows, you'll need a program like PuTTY.
Note: from here on, all commands will be on the remote server, over ssh. You'll need to create a set of ssh keys so you can connect to github. First create a .ssh directory:
mkdir .ssh
Follow the instructions here: https://help.github.com/articles/generating-ssh-keys .
To see your public key:
cat ~/.ssh/id_rsa.pub
Then, once you have logged into your github account and go to Account Settings > SSH Keys > Add key and add paste your public key in there.
Run the following command to clone the repo and check out the dev branch:
cd ~
git clone [email protected]:elplatt/seltzer.git
cd seltzer
git checkout dev
Create your public_html directory as a symlink to the seltzer/crm directory:
ln -s ~/seltzer/crm ~/public_html
chmod a+rx ~/seltzer/crm
Create a copy of the config file, and fill it in with your info:
cp ~/seltzer/crm/config.sample.inc.php ~/seltzer/crm/config.inc.php
nano ~/seltzer/crm/config.inc.php
In your web browser on your local machine, visit your user directory: http://seltzercrm.org/~foo/install.php . If you get an error, something is wrong, otherwise you will get a page prompting you for your email and a password. Enter your email address and choose a password to run the install script. You can now log in with the username "admin" and your chosen password.