30
2008
Assumptions:
Capistrano is installed
You are using a Capistrano supported version control system
You are using Ruby on Rails as the application framework and it is all installed and working
- First you need to create the Capistrano configuration files by moving to the root of you rails application and typing ‘capify .‘ (include the space and dot) this created the Capfile in the root and deploy.rb in the config directory
- Edit deploy.rb to set up Capistrano for your application: you will need to change or set the following values:
- set :application, “myNewApplication” #put your application name here – this is the directory your app will end up in
- set :repository, “pathToYourRepository” #this can be a local full file path eg ‘/home/me/repository/myNewApplication’ or a path to an external repo ‘bzr+ssh://me@example.com/repo/myNewApplication’
- set :scm, :bzr #set this to :bzr, :git etc as appropriate if you are not using subversion
- set :deploy_to, “/var/www” #set this to the directory you want your apps to land in, the application name listed above will be created as a sub directory of this one
- role :app “myserver.example.com” #set this to the domain name of your server, it is used to connect to your server so it must resolve to the ip of the server
- role :web “myserver.example.com”
- role :db “myserver.example.com” , :primary =>true
- ssh_options[:port] = 20000 #if you are not using the standard ssh port (22) you must specify the correct value here
- set :user, “me” #if you use a different username to log into the remote machine you need to specify it here
- set :use_sodu, false #you will probably want to use this else everything will be owned by root and the application probably won’t run, I found this did not for cap deploy:setup
- Set up the directory structure by running ‘cap deploy:setup‘
- Check the app skeleton by running ‘cap deploy:check‘ you may need to change the owner for the directories created above
- Deploy your app with ‘cap deploy:update‘ if everything went OK the app will be deployed from the repository to the application directory structure
You still need to create and deploy the database and start the application itself, you can use Capistrano and rake tasks do these things.
23
2008
- Open active directory users and computers
- Find the group
- Open the group properties by double clicking on it
- Go to the “Members” tab
- Click “Add”
- Choose the user(s) or contact(s) from the active directory list. You can sort the list by clicking the column titles
- Click “OK”
- Click “OK” or “Apply” to save the changes
23
2008
- Open active directory users and computers
- Navigate to the Organisational Unit (folder) in which you want to create the distribution group
- Right click on the Organisational Unit
- Choose New -> Group from the context menu
- Fill in the name for the group, this name will appear in the outlook email address list which has a small window on most versions of outlook so make sure the name is identifiable from the first few characters
- Select “Distribution” under “Group Type”
- Click “Next”
- Make sure “Create an Exchange e-mail address” is ticked
- Click “Next” and Finish
The group will have an external address of ‘group name’@'your primary email domain’, to add an additional address:
- Open the group properties by double clicking on it in active directory users and computers
- Go to the “E-mail Addresses” tab
- Choose “New”
- Choose “SMTP Address”
- Enter the email address, this address must be valid for you exchange organisation ie the domain section of the address must be present within one of the recipient policies for your organisation
- Click “OK” and “Apply” or “OK” to save the changes
Don’t forget to add some users to the group!
23
2008
To redirect exchange email from one account to another:
- Open active directory users and computers
- Find the account you want to redirect mail from
- Open the properties box for the account by double clicking on it
- Go to the “Exchange General” tab
- Click “Delivery Options”
- Select the “Forward to” radio button
- Click “Modify” and choose an account or a contact from the active directory
- Optionally check “Deliver messages to both forwarding address and mailbox” if you want this account to continue to receive email.
- Click “OK” and “OK” or “Apply” to save the changes
Note that to forward to an external email address you must first create a contact in active directory.
To redirect email and remove the account or permanently redirect email you could remove the email address from the source account and add it to the destination account or perhaps better create a distribution group with this address and add the target user to the group.
23
2008
- Open active directory users and computers
- Navigate to the Organisational Unit (folder) in which you want to create the contact
- Right click on the Organisational Unit
- Choose New -> Contact from the context menu
- Fill in the name fields as you see fit but note that you can not have duplicate names so if you are creating an external address for someone that aready has an account you will need to modify the name eg call “John Smith” “John Smith (home)” or John Smith (hotmail).
- Click “Next”
- Make sure “Create an Exchange e-mail address” is ticked
- Click “Modify”
- Choose “SMTP Address” and “OK”
- Enter the email address
- Click “OK” , “Next” and “Finish”
