BFH Handwriting Website: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:BFH Handwriting]] [[Category:Web Development]]
== Hosting ==
== Hosting ==


Line 6: Line 5:
== Dependencies ==
== Dependencies ==


<p class=alert alert-warning">`pip` is not installed on the Namecheap servers & won't install due to permissions errors. So it seems unlikely to be able to use `composer` to install the PHP packages.</p>
<p class="alert alert-warning">`composer` is not installed on the Namecheap servers & won't install due to permissions errors. So it seems unlikely to be able to use `composer` to install the PHP packages.</p>


=== Production ===
=== Production ===
Line 19: Line 18:


== Development environment ==
== Development environment ==
=== Unit testing ===
TK. Selenium? See [[Using PHPUnit]]


=== Local ===
=== Local ===


* '''Host:''' `littledamienii`
* '''Host:''' PHPStorm provides a built-in server at [http://localhost:63342/ http://localhost:63342/bfhhand_web/] ('''63342''' is the default port.) <ref>[https://www.jetbrains.com/help/phpstorm/php-built-in-web-server.html Built-In Web Server] -- PHPStorm documentation</ref>
* Deploy to the local site with PHPStorm's '''Sync with deployed to...''' command.
* When `IS_DEV` is set to `true` in the `app_state.php` config file, the URL above will be used as the base URL of the site. Otherwise the production URL will be used.  
** Make sure to set excluded paths on the remote host before syncing.  
** Set Deployment options such that saving files automatically syncs them with the default remote host.
* It appears that the local environment isn't adequate to test PayPal transactions since it does not have a SSL certificate and can't support https protocol.


=== Staging ===
=== Staging ===


* '''Host:''' [http://staging.bfhhandwriting.com]
* '''Host:''' [https://staging.bfhhandwriting.com https://staging.bfhhandwriting.com]


== Deploying the site ==
== Deploying the site ==
See [[BFH Handwriting Website Deployment]].


* Deploy using PHPStorm's '''Sync with deployed to..." command.
* Deploy using PHPStorm's '''Sync with deployed to..." command.
Line 42: Line 44:


''(Source: Google Drive)''
''(Source: Google Drive)''
== See also ==
=== External links ===
* [https://github.com/dbarchowsky/bfhhand_web bfhhand_web Readme] - GitHub
* [[Foundation with Sass]] - Wiki
=== Notes ===
<references />
[[Category:BFH Handwriting]][[Category:Web Hosting]][[Category:Web Development]]

Latest revision as of 12:42, 6 October 2018

Hosting[edit]

Website and domain name are hosted with Namecheap.

Dependencies[edit]

composer is not installed on the Namecheap servers & won't install due to permissions errors. So it seems unlikely to be able to use composer to install the PHP packages.

Production[edit]

  • Authorizenet SDK
  • PayPal REST API SDK

Development[edit]

  • PHPUnit
  • PHP Documentor

Development environment[edit]

Unit testing[edit]

TK. Selenium? See Using PHPUnit

Local[edit]

  • Host: PHPStorm provides a built-in server at http://localhost:63342/bfhhand_web/ (63342 is the default port.) [1]
  • When IS_DEV is set to true in the app_state.php config file, the URL above will be used as the base URL of the site. Otherwise the production URL will be used.

Staging[edit]

Deploying the site[edit]

See BFH Handwriting Website Deployment.

  • Deploy using PHPStorm's Sync with deployed to..." command.
    • Make sure to exclude the necessary local and remote paths from the sync, e.g. sass and vendor locally, and shared PHP directories and WordPress directories on the remote server.

Shopping Cart[edit]

(Source: Google Drive)

See also[edit]

External links[edit]

Notes[edit]

  1. Built-In Web Server -- PHPStorm documentation