Git Hub Cloning
- Install Git
sudo apt install git-all - Clone Project
git clone https://github.com/davidjhk/sms - Git Config
git config --global user.name "davidjhk"
git config --global user.email davidjhk@gmail.com - Setup Nginx Virtual Host
vi /opt/bitnami/apps/wordpress/conf/nginx-vhosts.conf
Add following text.
server{ listen 80; server_name sms.cabible.org; access_log logs/yii2.access.log; error_log logs/yii2.error.log error; root /opt/bitnami/apps/wordpress/htdocs/sms/frontend/web; index index.php index.html index.htm; location / { try_files $uri $uri/ /index.php?$args; } include "/opt/bitnami/apps/wordpress/conf/nginx-app.conf"; }
- Change nginx settings
sudo vi /opt/bitnami/nginx/conf/bitnami/bitnami-apps-prefix.conf#include "/opt/bitnami/apps/wordpress/conf/nginx-prefix.conf"; // 주석 처리
- Restart nginx
sudo /opt/bitnami/ctlscript.sh restart - Composer update
- Copy nessasary files
frontend/web/index.php
frontend/config/
common/config/ - Give Permission
sudo chmod 777 -R frontend/web/assets/
sudo chmod 777 -R frontend/runtime