-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment Server Setup Process
EricKnudsen256 edited this page Dec 17, 2021
·
1 revision
- Install php, rabbitmq-lib, php-ssh2, php-amqplib, git, mysql-server, tar
- create usr/local/deployement folder
- create usr/local/packages folder
- run "sudo chmod -R a+rwx /usr/local/packages"
- make a new user with username deployment, password deployment12345
- make a new mysql user with username deployment, password IT490123
- Allow ssh through ufw if ufw is enabled
- download deployment-final branch of project to any folder, such as ~/Git/IT490-Project
- move path.inc, deploymentRabbit.inc, getDB.php, get_host_info.inc, host.ini from ~/Git/IT490-Project to /usr/local/deployment
- move "deployment", deploymentServers.ini, and host.ini to /usr/local/bin
- run the Deployment.sql file in mysql
- change IP in all ini files, and in the deploymentListener.php script
- tell each other server you wish to manage to follow the Deployment Listener Setup guide
- sudo deployment create : Creates a new package using the files that has tracked, and adds an entry for the package in the Package database
- sudo deployment install : Installs a package to , running any scripts and restarting any service that that machine had tracked. Cannot install untested or failed packages to Production Servers
- sudo deployment fail : sets a package's status to "failed" in the database
- sudo deployment pass : sets a package's status to "passed" in the database
- sudo deployment rollback installs the most recent "passed" package to a machine