This repository has been archived by the owner on Oct 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Deployment
tenaciousRas edited this page Dec 6, 2014
·
10 revisions
The SSD AngularJS website is a static HTML website that uses web services to reach backend data. It also consists of at least 3 PHP scripts to proxy AJAX calls to prevent CORS errors. These PHP scripts do not and should not allow willy-nilly proxy requests in order to prevent malicious usage.
The deployment is git-based. These steps only apply to the deployment from 1.x to 2.x, in other words from the WP frontend to the NG frontend with WP backend. In 2.x and beyond the deployment should consist of a single "git pull github master" where 'github' is a git repo.
The deployment steps go like this:
check file permissions and ownership. Probably need to sudo chown the files cloned with Git since shell user != httpd daemon user. Ownership should be the same as wwwroot. Use -R switch. Read/write permissions should just be read. There are 3+ proxy*.php files that probably need execute permission, not sure. Permissions from wwwroot for wordpress should have copied over verbatim.
- Troubleshoot
- If proxy scripts don't work check path and URLs in app/js/services.js.
- Use developer toolbar to check proxy requests and responses.
- Wrong settings in RewriteBase will usually throw a 500 or 50x error. Possible corrective action is to add/remove trailing slash, or try commenting it out by adding # as the first character in the line.
To rollback: