Monday, November 23, 2015

Deploying a WSP to SharePoint 2013



How to deploy a WSP to SharePoint Farm Solution library

This need to be done on the Server which host the SharePoint Central Administration.
  1. Add the WSP to the SharePoint Server
    1. The first thing you need to do is copy over the wsp deployment file. The best things to do is to create a deployment folder, where all the deployed files are kept.
    2. Copy over the deployment files to: c:\Deploy\WSP
  2. Add the WSP to the SharePoint Farm Solution library
    1. Open "SharePoint 2013 Management Shell " as administrator
      a. Open the Search on Server 2012
      b. Search for "SharePoint 2013 Management Shell"
      c. Right click "SharePoint 2013 Management Shell"
      d. Select "Run as Administrator"
    2. Run this script: 

      Add-SPSolution "c:\Deploy\WSP\{file name}.wsp"  
  3. Deploy the WSP to the SharePoint Farm Solution library

    1. Open Central Administration
    2. Click "System Settings"
    3. Click "Manage farm solutions", under "Farm Management"
    4. Click on the {file name}.wsp package
    5. Click "Deploy Solution"
    6. Deployment settings
      Deploy When: Now
      Deploy to: All content Web application
    7. Click "OK"

How to activate the WSP Feature on the Site Collection

  1. Activate the WSP Feature on the Site Collection
    1. Open the Root Site (the Site Collection)
    2. Click the cog, in the top right corner (Site Actions)
    3. Select "Site Settings"
    4. Click "Site collection features", under "Site Collection Administrator"
    5. Go to {file name}
    6. Click "Activate", to the right

Sunday, November 8, 2015

GitHub - From Fork to clone then push back to server

To start, please make sure that you already have:

  1. GitHub account (https://github.com/)
  2. Git Bash software (http://git-scm.com/)


This is step by step guideline to fork, clone and push back at GitHub server.

1. Open any folder at GitHub that you want to fork (copy to your GitHub folder). Then press Fork at top-right of the page


2. After fork, the page will redirect you to your GitHub account. Next, we want to clone the file to your local repository (own computer). Copy the link first at the folder you want to clone.


3. Open Git Bash application then change the working directory to your preferred folder first.

         code: cd "folder url"
         example: cd "/e/Training/Training 2015/Data/Module 4/Week 1 - Course Project 1"
        Then request for clone by entering the following command:

         code: git clone URL
         example: git clone https://github.com/fairulshahrizat/practice_assignment.git


After that you can closed Git Bash & check your preferred folder for content.


4. After you are done with your task, you will want to push the emended in the folder to your GitHub account back. To do this, follow this step:
  1. From the local repository folder, right click and select 'Git Commit Tool'.
  2. There, select the files you want to upload, under 'Unstaged Changes' and click 'Stage Changed' button. (You can initially click on 'Rescan' button to check what files are modified and not uploaded yet.)
  3. Then write a Commit Message and click 'Commit' button.



      4. Now right click in the folder again and select 'Git Bash'
      5. Type: git push origin master and enter your credentials (GitHub account). 


         6. Then you can check back your GitHub folder to see the update. Click commits for version details.