1 Setting up a local working copy with SVN, MAMP and rsync Agentic
2 Get MAMP You can download MAMP for MAC at this address : Install MAMP in your APPLICATION folder.
3 Get a copy of the site on your local Once you have MAMP installed, you can prepare the copy of the site you have to work on. To do so you need to have two things (for a drupal site) : The Drupal files (containing drupal core, themes, modules, etc...) The corresponding database of the site We are going to start by getting the Drupal files. To do so, we are going to use SVN. SVN is going to keep track of the files you will work with, and check if the modification you re doing can be added to the live site, as well as all the modifications other team member could commit to the live site. This allow a group of people to work on the same files without deleting/overlapping any code. It could be compared to editing a google document at the same time as another person on internet.
4 SVN In order to use SVN to retrieve the files you need, the most common way to do so is to use the Terminal application. You can find it in the Utility folder of your applications folder (Application/Utilities/Terminal). Start terminal :
5 Going to the right folder using terminal First you need to tell WHERE you want the site s files to be downloaded. To do so, you are going to point Terminal to the right folder. A very simple way is to use your FINDER to create the path. First, type in terminal cd followed by a space: Then go and create the folder you want to download the files to. It should be an empty folder in the htdocs folder located inside of the MAMP folder (here I use MyLocalSite as an example) : /Applications/MAMP/htdocs/MyLocalSite You could either type this path after cd in Terminal, or drag the folder into the Terminal window, it ll create the path automaticly. Then press ENTER
6 SVN checkout Now you should retrieve the link and password to the SVN repository from your developer. It should be something like this : svn co svn+ssh:// pathtoproject You should also have a password along with this. Start first by copy/paste the code in Terminal. It should prompt you for the password, enter it (password are not shown in Terminal, so even if it looks like you re not typing, you are), and then you should see some activity. It s the list of all the files that are being downloaded from the live site to your computer.
7 Checkout using TEXTMATE You can checkout, and pretty much do all SVN action directly from TEXTMATE, the best code editor :). This offer a more friendly interface if you are not very comfortable with Terminal s interface. First start Textmate. To access to the SVN command, you need to have a file open.. I know it s weird, but open any text file and you should be good to go. Once you have a file open, go to BUNDLE > SUBVERSION > CHECKOUT or use the shortcut : CONTROL+SHIFT+A and click on CHECKOUT You should see a new pop up window asking you the URL of the repository like this one :
8 Same as before, type in the link your developer gave you, starting after the //. Press CHECKOUT. You should see a new window asking you where to drop the file. Remember to specify a folder within htdocs in the MAMP folder. Press SAVE. Wait few minutes, and all your files should be ready to go.
9 Checking the files You can view all the downloaded files if you navigate to the folder in FINDER. Now it s time to get the DATABASE
10 Database DUMP You now need to get a database dump that you will later connect to your Drupal install that is now on your local. You can get it yourself by login in on the live site you are working on. If you have the right permissions, you can access the export DB page : /admin/content/backup_migrate Make sure you selected EXPORT. Then Scroll down the page and click on BACKUP DATABASE. You should then be able to download a file. Save it, this is your database.
11 Import Database in MAMP Now that you have a database, you have to import it in your local environment. You can do so through Terminal, but there is a much more user-friendly way, using PHPMyAdmin, a PHP interface to interact with your databases. Open MAMP, and click on OPEN START PAGE Once the page is open, in the main menu, click on " phpmyadmin
12 PhpMyadmin First you need to create an empty database, to import the one you downloaded into it. Juste enter a name for the database and click CREATE. Your database should be created, but empty (no tables in it)
13 Import tables Now you need to import the database. Just click on IMPORT in the main menu Then use the browse input to select the database you downloaded earlier. Don t change anything else, and click GO on the bottom right of the page. Wait few minutes, the page should reload once it s done, and list all the tables that have been imported. If there is an error, contact your developper to try to do it through Terminal.
14 Connect the database with Drupal As this is not a first instal of Drupal, you need to manually connect the Drupal site to the database. Fist go to your drupal site and find the settings.php file located in sites/default/settings.php Open the file, and on line 93, you should see something like this : $db_url = replace username and password by root and the databasename by the name of the database you entered earlier. $db_url = Save the file
15 View your site Now you can view your site through Firefox. Just open the Start page of MAMP, and delete the part of the URL that is after localhost/ or 8888/ You should see the folders in htdocs now, navigate to your site s folder to view it.
16 Adding a new theme with SVN and Terminal You might need to install a new theme (like BASIC for example :) ). This will give us the opportunity to see how can we add new files to the site using SVN with Terminal. First, download BASIC : Drop it in the folder sites/all/themes/ Open Terminal, and navigate to the theme folder. Remember that you can drag and drop a file into terminal to get its path : cd /Applications/MAMP/htdocs/drupal6/sites/all/themes In Terminal, type svn add basic, This will tell SVN to manage the newly added Basic folder and its content To commit the added files, type : svn commit -m type a message to explain your commit
17 Editing / Committing using Textmate After installing your theme in your local, you might want to edit it a bit :). Using Textmate, not only you can edit entire folders, but you can also commit the changes to SVN through a very nice and simple user interface. First to open a file in Textmate, just drag it to the icon in your dock. You can open an entire folder (like the Basic theme folder) in Textmate by just drag and drop on the Textmate logo. The folder should be exposed in the Textmate file drawer. When editing, each opened file is displayed in a tab, and unsaved files have a little circle instead of the closing cross before the name.
18 Editing / Committing using Textmate Once you re happy with your modifications, you can commit them to SVN using Textmate. First, select which file to commit. If you want to only commit one file, select it in the file drawer. If you want to commit all the modifications inside one folder, select the folder in the file drawer. To commit, use the following keyboard shortcut : Ctrl + Shift + A A menu should appear beside your mouse. All the SVN actions available to you are listed. To commit, you can either click on Commit or press the corresponding menu number 5.
19 Commenting your commit Once you selected Commit, the list of the modified files you are going to commit appear, and a text area on top allow you to type a comment about your committing. Make sure that all the files are checked. If you already type a comment previously that you d like to repeat, you can select one of the last 5 comments you typed to be repeated in the text area.
20 Adding/deleting files If you added or deleted some files, SVN will notice it, and ask you if you want to remove or add the files from the version control. Deleted files will show up with a! icon, and the new files will show up with a? icon. For both files, make sure that the corresponding checkbox is checked, and that you specified, using the link on the right, what is the action to do. Once all the files are configured correctly and that you entered your comment, click on Commit.
21 Failed commit If after committing you have an error message telling you that the commit failed, you might want to make sure that your files have the latest version. To do so, choose the Update action in your SVN menu (Ctrl + Shift + A). This action will retrieve the latest version of the files, and merge them with yours. If no conflict is reported, you can then commit your files.
22 Resolving Conflicts In some rare cases, you might have some conflicts between your code and the latest version of the code. A conflict means that SVN cannot find a way to merge your files with the latest version of the code. This can mean that you forgot to update your local files before working, and someone else committed some major changes, or in exactly the same areas as you. SVN will create some extra files in case of conflict. For example, if style.css has a conflict, SVN will create some duplicate of style.css of the latest revisions, and call them by their revision number like : r210.style.css, meaning that this is the file on revision #210. It will also create a copy of it named mine.style.css, that correspond to your version. Finally, SVN will comment the style.css file with the conflicted areas like this : >>>> revision 210 or >>>>> mine This can help you to manually figure out a way to merge the conflicting versions.
23 Resolving Conflicts When you manually resolved the conflicts, make sure you delete all unnecessary files that SVN added before trying to commit again. If you can figure out how to resolve a conflict, make a copy of your code (mine.style.css) somewhere on your hard drive (on your desktop for example), and delete all the conflicting files from the folder. Then, run a SVN update to retrieve the latest version of the files. You can now add your code to the valid style.css, and commit safely the modifications once it s working properly.
24 SVN Bugs Sometimes it is possible that SVN doesn t work properly. It could come from various reason, but the most common one is that you might have duplicated a folder that was under SVN, so both folder have the same SVN ID. To resolve this, delete all the.svn files in the duplicated folder (you can view hidden files using programs like Transmit) It is also possible that SVN through Textmate won t allow you to delete a file. If this happen, you can use Terminal instead, by navigating to the file and typing : svn delete filename.ext svn commit -m deleting file You ll also notice that Textmate won t allow you to do any SVN action unless you open at least one file.
25 Sync ing files with rsync Often, we deploy a site either to staging or production and clients will be uploading files that will not be under version control. In this case we need to pull the staging (or live) files back into our local working copy (so we can see all images when we re doing dev, for example). Example: your local working copy is at /Applications/MAMP/htdocs/givegreen/trunk; staging site is on our dev server at Open terminal and type cd /Applications/MAMP/htdocs/givegreen/trunk/sites/all/files Enter Copy and paste the following and press Enter rsync --verbose --progress --stats --compress --rsh=/usr/bin/ssh --recursive sites/all/files/./ Supply the givegreen SFTP password (or get it from your sysadmin)
Git - Working with Remote Repositories Handout New Concepts Working with remote Git repositories including setting up remote repositories, cloning remote repositories, and keeping local repositories in-sync
CONTENTS SECTION 1 Check current version of Remote Desktop Connection for Mac.. Page 2 SECTION 2 Remove Old Version Remote Desktop Connection..Page 8 SECTION 3 Download and Install Remote Desktop Connection
APPENDIX A Introducing Xcode Source Control What You ll Learn in This Appendix: u The source control features offered in Xcode u The language of source control systems u How to connect to remote Subversion
Installing Drupal on Your Local Computer This tutorial will help you install Drupal on your own home computer and allow you to test and experiment building a Web site using this open source software. This
CEFNS Web Hosting a Guide for CS212 INTRODUCTION: TOOLS: In CS212, you will be learning the basics of web development. Therefore, you want to keep your tools to a minimum so that you understand how things
PHP Tutorial 1 Getting Started with Dynamic Web Sites Setting Up Your Computer To follow this tutorial, you ll need to have PHP, MySQL and a Web server up and running on your computer. This will be your
SFTP Server User Login Instructions Open Internet explorer and enter the following url: https://sftp.sae.org You will be prompted for a user id and password as such. Please enter your account id and password.
owncloud Configuration and Usage Guide This guide will assist you with configuring and using YSUʼs Cloud Data storage solution (owncloud). The setup instructions will include how to navigate the web interface,
ECE155: Engineering Design with Embedded Systems Winter 2013 Lab 0 (Setting up your Development Environment) Week 1 Prepared by Kirill Morozov version 1.2 1 Objectives In this lab, you ll familiarize yourself
How to set up SQL Source Control The short guide for evaluators Content Introduction Team Foundation Server & Subversion setup Git setup Setup without a source control system Making your first commit Committing
eyeos Web System User Manual Contents 1. Introduction 1.1. Logging in 1.2. Creating a new user 2. The Desktop: First Steps 2.1. The Applications Dock 2.2. The default Desktop Icons 2.2.1. Home Icon 2.2.2.
How to Use JCWHosting Reseller Cloud Storage Solution Go to https://www.internetspace.co.za and log in with your Cloud Reseller account username and password. How to Use create a cloud account for your
Flumes Short User Guide to Subversion Peter Nordin January 7, 2014 This guide is primarily meant as an introduction to Subversion for users of the svn accounts administered by the Division of Fluid and
Version Control with Subversion and Xcode Author: Mark Szymczyk Last Update: June 21, 2006 This article shows you how to place your source code files under version control using Subversion and Xcode. By
WatchDox for Mac User Guide Version 2.3.0 Confidentiality This document contains confidential material that is proprietary to WatchDox. The information and ideas herein may not be disclosed to any unauthorized
WinSCP: Secure File Transfer Using WinSCP for Secure File Transfer on Windows Overview WinSCP is an SFTP (Secure File Transfer Protocol), FTP (File Transfer Protocol), and SCP (Secure Copy Protocol) application
Mikogo User Guide Windows Version Table of Contents Registration 3 Download & Installation 4 Start a Session 4 Join a Session 5 Features 6 Participant List 6 Switch Presenter 7 Remote Control 7 Whiteboard
MailChimp Instruction Manual Spike HQ This manual contains instructions on how to set up a new email campaign, add and remove contacts and view statistics on completed email campaigns from within MailChimp.
Your First App Store Submission Contents About Your First App Store Submission 4 At a Glance 5 Enroll in the Program 5 Provision Devices 5 Create an App Record in itunes Connect 5 Submit the App 6 Solve
Transitioning from TurningPoint 5 to TurningPoint Cloud - LMS 1 A Turning Account is a unique identifier that is used to tie together all software accounts and response devices. A Turning Account is required
UP L18 Enhanced MDM and Updated Email Protection Hands-On Lab Description The Symantec App Center platform continues to expand it s offering with new enhanced support for native agent based device management
Cloudwords Drupal Module Quick Start Guide 1 Contents INTRO... 3 HOW IT WORKS... 3 BEFORE YOU INSTALL... 4 In Cloudwords... 4 In Drupal... 4 INSTALLING THE CLOUDWORDS DRUPAL MODULE... 5 OPTION ONE: Install
Sitellite Desktop User Manual Sitellite Professional Edition Introduction The Sitellite Desktop is a cross-platform desktop application that can manage one or more Sitellite 5-powered websites in a more
Version 2 July 2007 Beginning with SubclipseSVN A user guide to begin using the Subclipse for source code management on the CropForge collaborative software development site. Copyright International Rice
AppAssure Software Information Collection Utility: AAInfo Introduction AppAssure Software understands the value of being able to quickly and easily provide our technical staff valuable system information
Content Management System User Guide support@ 07 3102 3155 Logging in: Navigate to your website. Find Login or Admin on your site and enter your details. If there is no Login or Admin area visible select
1 MATLAB & Git Versioning: The Very Basics basic guide for using git (command line) in the development of MATLAB code (windows) The information for this small guide was taken from the following websites:
BeamYourScreen User Guide Mac Version Table of Contents Registration 3 Download & Installation 4 Start a Session 5 Join a Session 6 Features 7 Participant List 7 Switch Presenter 8 Remote Control 8 Whiteboard
The Social Accelerator Setup Guide Welcome! Welcome to the Social Accelerator setup guide. This guide covers 2 ways to setup SA. Most likely, you will want to use the easy setup wizard. In that case, you
Installation of SE S AM E BARCODE virtual machine distribution (Windows / Mac / Linux) Introduction A "virtual machine" is a fake computer within a true one. An underlying software (here VirtualBox) is
NJCU WEBSITE TRAINING MANUAL Submit Support Requests to: http://web.njcu.edu/its/websupport/ (Login with your GothicNet Username and Password.) Table of Contents NJCU WEBSITE TRAINING: Content Contributors...
Configuring your email client to connect to your Exchange mailbox Contents Use Outlook Web Access (OWA) to access your Exchange mailbox... 2 Use Outlook 2003 to connect to your Exchange mailbox... 3 Add
Hallpass Instructions for Connecting to Mac with a Mac The following instructions explain how to enable screen sharing with your Macintosh computer using another Macintosh computer. Note: You must leave
Welcome to Enterprise Vault Archiving You have now been told when your Outlook mailbox will be enabled for Enterprise Vault archiving. This means that instead of storing all your messages on the Exchange
Installation Guidelines (MySQL database & Archivists Toolkit client) Understanding the Toolkit Architecture The Archivists Toolkit requires both a client and database to function. The client is installed
Hosting Users Guide 2011 eofficemgr technology support for small business Celebrating a decade of providing innovative cloud computing services to small business. Table of Contents Overview... 3 Configure
Frequently Asked Questions Share Drive Frequently Asked Questions Table of Contents How do I change my password?... How do I reset my password if I forgot it?... How do I share files/folders with Groups
Deploying Physical Solutions to InfoSphere Master Data Management Server Advanced Edition v11 How to deploy Composite Business Archives (CBA) to WebSphere John Beaven IBM, Hursley 2013 1 Contents Overview...3
An Introduction to Box.com Box is an online file sharing and cloud content management service and it provides features such as: Security controls Space Mobility Online collaboration Mobile access Version
Content Management System User Guide Table Of Contents Getting Started Checklist... 1 Overview: Portal Content Management System... 3 Anatomy of a Portal Page... 3 Overview of the Content Management System...
Build it with Drupal 8 Comprehensive guide for building common websites in Drupal 8. No programming knowledge required! Antonio Torres This book is for sale at http://leanpub.com/drupal-8-book This version
ProExtra eclaiming User Guide Welcome to ProExtra eclaiming. You can use this system to submit claims to ProCare, for the services you have provided to patients referred to you by their GPs. You will need
School of Computer Science 1 Using Subversion in Computer Science Last modified July 28, 2006 Starting from semester two, the School is adopting the increasingly popular SVN system for management of student
Mikogo User Guide Linux Version Table of Contents Registration 3 Downloading & Running the Application 4 Start a Session 5 Join a Session 6 Features 7 Participant List 7 Switch Presenter 8 Remote Control
How to Move an SAP BusinessObjects BI Platform System Database and Audit Database Technology Used SAP BI Platform 4.1 (this includes SAP BusinessObjects Enterprise 4.1, SAP BusinessObjects Edge 4.1 and
Simple, Secure User Guide for OpenDrive Drive Application v18.104.22.168 for OS-X Platform 20150501 May 2015 Table of Contents Logging into the Drive Application 4 Log In Sign Up Access the Drive Application
OET Cloud Services Getting Started Guide Introduction OET Cloud Services uses Google Drive to let you store and access OET files anywhere -- on the web, and access them on your PC, or on any device connected
Factsheet 22 Student Email September 2011 This factsheet can be made available in alternative formats. Please make your request at the Library Help Desk, telephone 01642 342100 or email email@example.com
Using SharePoint from a Mac: Terminal Server Instructions This manual provides information and instructions for Mac SharePoint Users at Fermilab. Page 0 Contents Fermilab Terminal Server Introduction...2
Synthesis Migration Guide The purpose of this guide is to provide you with simple step- by- step instructions for migrating your WordPress website from its current hosting to a premium managed Synthesis
USING MS OUTLOOK In this tutorial you will learn how to use Microsoft Outlook with your EmailHosting.com account. You will learn how to setup an IMAP account, and also how to move your emails and contacts
page of 4 oit UMass Office of Information Technologies Setting Up a Dreamweaver Site Definition for OIT s Web Hosting Server This includes Web sites on: https://webadmin.oit.umass.edu/~user http://people.umass.edu/
How to Setup, Install & Run a Website on your Local Computer For WordPress - on an Offline Server - WAMP Index: Determine Operating System Status Download WAMP Server Download Latest WordPress Installing
USING MS OUTLOOK WITH FUSEMAIL In this tutorial you will learn how to use Microsoft Outlook with your FuseMail account. You will learn how to setup an IMAP account, and also how to move your emails and
Install FileZilla Client Secure FTP is Middle Georgia State College s supported sftp client for accessing your Web folder on Webdav howeve you may use FileZilla or other FTP clients so long as they support
How to Configure Windows 8.1 to run ereports on IE11 Description: Windows 8.1 ships with IE10, but can be updated to IE11. There is a special mode in IE11 called Enterprise Mode that can be used to emulate
Windows Installation using XAMPP XAMPP is a fully functional web server package. It is built to test web based programs on a personal computer. It is not meant for online access via the web on a production
Table of Contents Navigation Document Manager Sync Manager File Access Field Verification Measurements Markups List Forms Studio Sessions Studio Projects Preferences Vu ipad v2.6 Navigation Panels There
USERS MANUAL FOR OWL A DOCUMENT REPOSITORY SYSTEM User Manual Table of Contents Introducing OWL...3 Starting to use Owl...4 The Logging in page...4 Using the browser...6 Folder structure...6 Title Bar...6
Create an ios App using Adobe Flash And without using a Mac Contents 1 Become an Apple ios Developer... 2 2 Add a Development Certificate... 4 3 Create a Certificate Signing Request (CSR)... 6 4 Register
APNS Certificate generating and installation Quick Guide for generating and installing an Apple APNS Certificate Version: x.x MobiDM Quick Guide for APNS Certificate Page 1 Index 1. APPLE APNS CERTIFICATE...
SimpleFTP User s Guide On-Core Software, LLC. 893 Sycamore Ave. Tinton Falls, NJ 07724 United States of America Website: http://www.on-core.com Technical Support: firstname.lastname@example.org Information: email@example.com
SURPASS HOSTING SERVICE GETTING STARTED AND OPERATIONS GUIDE Welcome To Surpass Hosting Service. This document contains instructions to help you get up and running with your new service. The instructions
STUDENT ADMINISTRATION TRAINING GUIDE SETTING YOUR BROWSER FOR PEOPLESOFT DOWNLOADS Table of Contents How to check the browser version... 3 PC - Internet Explorer... 8 Internet Explorer V9 Compatibility
Configure Single Sign on Between Domino and WPS What we are doing here? Ok now we have the WPS server configured and running with Domino as the LDAP directory. Now we are going to configure Single Sign
BackupVault / Attix5 Server Quickstart Guide This document takes about 5 minutes to read and will show you how to: Download the software Install the Attix5 Professional Backup software Backup your files
Page1 Contents Setting Up a Student Web Account on the SUNY Cortland Web Server... 2 Opening the iweb Application and Choosing a Template... 3 Publishing Your iweb site to Student Web... 5 Creating a Copy
HowTo Project: Description: Planning table online Installation Version: 1.0 Date: 04.09.2008 Short description: With this document you will get information how to install the online planning table on your
Creating an eportfolio using Blackboard 9.1 Before you begin working on your eportfolio, you will need to do some preparation: Collect the files (aka artifacts ) that you wish to include in your eportfolio
QlikView 11 Source Control Walkthrough A QlikView Technology White Paper Originally published: August, 2011 Updated August, 2012 www.qlikview.com 1 Table of Contents BACKGROUND... 3 SOURCE CONTROL BASICS...
Microsoft OneDrive The beauty of OneDrive is that it is accessible from anywhere you have an Internet connection. You can access it from a Mac or Windows computer. You can even access it on your Smartphone
Web Hosting Getting Started Guide This guide describes: - Hosting Terms and Definitions - How to sync a domain with your hosting account - How to change your domain s nameservers - How to use FTP to upload
offers 3 login page styles: Standard Login, List Login or Quick Time Punch. Each login page can be saved as a shortcut to your desktop or as a bookmark for easy fast login access. For quicker access to
Your complete guide to installing the info@hand Self-Service Portal and estore. Install the Portal & estore as shrink-wrapped software, or as add-ons to an existing Joomla! installation. Then configure
Getting Microsoft Outlook and Salesforce in Sync Salesforce, Summer 15 @salesforcedocs Last updated: July 1, 2015 Copyright 2000 2015 salesforce.com, inc. All rights reserved. Salesforce is a registered
Novell Filr Windows Client 0 Table of Contents Supported Environments 2 Supported Languages 2 Getting Started 3 Which Folders Are Synchronized 3 What Actions Are Supported 4 Configuring Folders to Synchronize
for Networks Installation Guide for thin client package on workstations September 2015 (GUIDE 3) Version 1.3-N Copyright 2015, Lucid Innovations Limited. All Rights Reserved Lucid Research Limited www.lucid-research.com
Business Objects InfoView Quick-start Guide Last Modified: 10/28/2015 The latest PDF version of this document can be found at: http://www.calpolycorporation.com/docs/finance/boeinfoviewquickstart.pdf What
Outlook 2007: Managing your mailbox Find its size and trim it down Use Mailbox Cleanup On the Tools menu, click Mailbox Cleanup. You can do any of the following from this one location: View the size of
Full-text FTP Instructions for PC Users: In order to use the ftp, we will provide you with unique login credentials similar to the following: Host: ftp.epnet.com Username: ftpusername Password: XXXXX Windows
Index Index School Jotter Manual Logging in Getting the site looking how you want Managing your site, the menu and its pages Editing a page Managing Drafts Managing Media and Files User Accounts and Setting
Mac Information How to share files with Apple s MobileMe service Introduction: With MobileMe, Apple s internet services, you can place files online for others to download. This saves your colleague time