Creating a New Local Development Site: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
No edit summary
Line 30: Line 30:
=== NetBeans ===
=== NetBeans ===


* File > New Project
* '''File''' > '''New Project'''
* PHP Application
* '''Choose Project'''
* Project Name: [SITE_NAME]
** '''Categories:''' PHP
* Sources Folder: (navigate to site root (using LAN network name of server))
** '''Projects:''' PHP Application
* Project URL: http://[SUBDOMAIN].dbarchowsky.com/
* '''Name and Location'''
** '''Project Name:''' ''[SITE_NAME]''
** '''Sources Folder:''' ''(navigate to site root (using LAN network name of server))''
** '''PHP Version:''' ''(match whatever's on production)''
* '''Run Configuration'''
** '''Run As:''' Remote Web Site (FTP,SFTP)
** '''Project URL:''' `http://[SUBDOMAIN].dbarchowsky.com/`
** '''Remote Connection:''' ''([[Uploading_Files_from_Netbeans|create a connection]] for the production server)''
** '''Upload Directory:''' ''(put the path to the site root here, not in the remote connection)''
** '''Upload Files:''' manually


== Hosting site as subdomain of littledamien.com ==
== Hosting site as subdomain of littledamien.com ==

Revision as of 21:21, 27 June 2013

Local filesystem

  • Create directory on 'littledamienii'
  • /develop/[SITE_GROUP]/[WEB_ROOT]

Create Git repo

$ git init
  • Copy .gitignore file from existing site and edit it to suit the new site.

Create subdomain

IIS

  • Log in to local Windows server.
  • Open IIS MMC.
  • Local server > Sites > right click: Add web site
    • Site name: [PLAIN_ENGLISH_NAME]
    • Physical path: (navigate to the new web root directory)
    • Connect as: (authorized account)
    • Host name: [SUBDOMAIN].dbarchowsky.com

Domain registrar (Namecheap)

  • No action required here (unlike with GoDaddy).

NetBeans

  • File > New Project
  • Choose Project
    • Categories: PHP
    • Projects: PHP Application
  • Name and Location
    • Project Name: [SITE_NAME]
    • Sources Folder: (navigate to site root (using LAN network name of server))
    • PHP Version: (match whatever's on production)
  • Run Configuration
    • Run As: Remote Web Site (FTP,SFTP)
    • Project URL: http://[SUBDOMAIN].dbarchowsky.com/
    • Remote Connection: (create a connection for the production server)
    • Upload Directory: (put the path to the site root here, not in the remote connection)
    • Upload Files: manually

Hosting site as subdomain of littledamien.com

  • TK