Home / Web Application Deployment
Web Application Deployment
The jenkins
user must be used for all filesystem transactions: create {org} directory, upload files, edit files, etc.
The root
user must be used for all entries in the vhost files.
Data for keys can be obtained from project PM.
Legend
Key | Example |
---|---|
{Org} | Disney |
{org} | disney |
{group} | dcl (optional if not applicable) |
{project} | usually a digitec code like: DSN080514 |
Local Development
Server: | svn-1.digitec.local |
Path: | /home/www/html/dev/{org}/{group}/{project}/ |
User Name: | jenkins |
Password: | DegcuWandetowAi |
Local URL: | http://svn-1.digitec.local/dev/{org}/{group}/{project}/ |
Staging
Server: | staging.digitec.io |
Path: | /www/staging.digitec.io/{org}/{group}/{project}/ |
User Name: | jenkins |
Password: | DegcuWandetowAi |
Public Protected URL: | http://staging.digitec.io/{org}/{group}/{project}/ |
Protected URL User Name: | {username} |
Protected URL User Password: | {password} |
vhost
Entry to Staging
Adding a Add vhost
directory
directive in /etc/httpd/conf.d/staging.digitec.io.conf
.
# Begin {Org} Block
# ---------------------------------------------------
<Directory "/www/staging.digitec.io/{org}">
AuthType Basic
AuthName "Digitec Staging Server - {Org}"
AuthUserFile /etc/httpd/secure/staging.digitec.io/{org}.htpasswd
Require valid-user
<FilesMatch "\.(mp4|flv|webm|ogg|pdf)$">
Satisfy any
order allow,deny
allow from all
</FilesMatch>
</Directory>
# ---------------------------------------------------
vhost
Entry
Add Password Protection to New -
ssh
in as root to the staging server. - Navigate to the
/etc/httpd/secure/staging.digitec.io/
directory. - Create the
{org}.htpasswd
file.- The password entry is usually
user: {org}, password: 101
.
- The password entry is usually
If the file exists do not use the -c
flag or the file will be truncated:
# add the user to the existing file
htpasswd {org}.htpasswd {org}
If the file does not exist use the -c
flag to create it:
# create the file and add the user
htpasswd -c {org}.htpasswd {org}
Restart the server.
httpd -k restart