Creating a New Local Development Site: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Local filesystem== * Create directory on 'littledamienii' * <code>/develop/[SITE_GROUP]/[WEB_ROOT]</code> ==Create Git repo== * See: [[Git_Workflow#Creating_a_new_repo_out_...") |
|||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
==Local filesystem== | == Local filesystem == | ||
* Create directory on | * Create directory on `littledamienii` | ||
* | * `/develop/[SITE_GROUP]/[WEB_ROOT]` | ||
== Create Git repo == | |||
* See: [[Git_Workflow#Creating_a_new_repo_out_of_an_existing_site|Creating a New Git Repo]] | * See: [[Git_Workflow#Creating_a_new_repo_out_of_an_existing_site|Creating a New Git Repo]] | ||
* Open Git Bash. | * Open Git Bash. | ||
| Line 10: | Line 11: | ||
$ git init | $ git init | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* Copy | * Copy `.gitignore` file from existing site and edit it to suit the new site. | ||
==Create subdomain== | == Create subdomain == | ||
===IIS=== | === IIS === | ||
* Log in to local Windows server. | * Log in to local Windows server. | ||
| Line 24: | Line 25: | ||
** Host name: [SUBDOMAIN].dbarchowsky.com | ** Host name: [SUBDOMAIN].dbarchowsky.com | ||
===Domain registrar (Namecheap)=== | === Domain registrar (Namecheap) === | ||
* No action required here (unlike with GoDaddy). | * No action required here (unlike with GoDaddy). | ||
===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 == | |||
* TK | * TK | ||
[[Category:Web Development]] | == PHP/HTML framework == | ||
* TODO: Create a boilerplate framework within the shared directory to build off of. | |||
<pre> | |||
| | |||
+- _config/ | |||
| | | |||
| +- app_config.php | |||
| +- core_includes.php | |||
| +- globals.php | |||
| | |||
+- _templates/ | |||
</pre> | |||
== Install & configure Sass & Compass == | |||
* Installing and configuring Compass also installs Sass, which is a prerequisite for Compass. | |||
* The compass commands work in both powershell and cygwin. | |||
* In a shell, navigate to the project directory. | |||
<syntaxhighlight lang="powershell"> | |||
m:\path\to\web_root\> compass init | |||
</syntaxhighlight> | |||
* See [[Using_Sass#Configuration|Using Sass: Configuration]] for specific settings within the `config.rb` file. | |||
== Install & configure Grunt == | |||
See [[Using_Grunt_With_Web_Projects|Using Grunt with Web Projects]] | |||
* TK: Basic workflow | |||
== Create a MySQL database == | |||
Workflow is outlined in the [[Setting_Up_MySQL_Databases_for_New_Websites#Workflow|Setting Up MySQL Databases for New Websites]] article. | |||
== CMS == | |||
=== Configuring LITTLED libraries === | |||
See [[Littled_Content_Properties_CMS| Littled Content Properties CMS]] | |||
=== Shared JavaScript libraries === | |||
* Create virtual directories for whatever libraries will be used for the site, e.g. `littled`, `poshytip`, `tiny_mce`, etc. | |||
* Create a virtual directory for the jQuery UI stylesheets. | |||
=== Shared AJAX utility scripts === | |||
* Create virtual directory for `/_ajax/images` and `/_ajax/utils/` | |||
[[Category:Web Development]] [[Category:IIS]] [[Category:Git]] [[Category:PHP]] | |||
Latest revision as of 00:37, 5 February 2017
Local filesystem[edit]
- Create directory on
littledamienii /develop/[SITE_GROUP]/[WEB_ROOT]
Create Git repo[edit]
- See: Creating a New Git Repo
- Open Git Bash.
- Navigate to site root.
$ git init
- Copy
.gitignorefile from existing site and edit it to suit the new site.
Create subdomain[edit]
IIS[edit]
- 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)[edit]
- No action required here (unlike with GoDaddy).
NetBeans[edit]
- 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[edit]
- TK
PHP/HTML framework[edit]
- TODO: Create a boilerplate framework within the shared directory to build off of.
| +- _config/ | | | +- app_config.php | +- core_includes.php | +- globals.php | +- _templates/
Install & configure Sass & Compass[edit]
- Installing and configuring Compass also installs Sass, which is a prerequisite for Compass.
- The compass commands work in both powershell and cygwin.
- In a shell, navigate to the project directory.
m:\path\to\web_root\> compass init
- See Using Sass: Configuration for specific settings within the
config.rbfile.
Install & configure Grunt[edit]
See Using Grunt with Web Projects
- TK: Basic workflow
Create a MySQL database[edit]
Workflow is outlined in the Setting Up MySQL Databases for New Websites article.
CMS[edit]
Configuring LITTLED libraries[edit]
See Littled Content Properties CMS
[edit]
- Create virtual directories for whatever libraries will be used for the site, e.g.
littled,poshytip,tiny_mce, etc. - Create a virtual directory for the jQuery UI stylesheets.
[edit]
- Create virtual directory for
/_ajax/imagesand/_ajax/utils/