Nginx server project deployment

  • First download the code from gitlab
 
  • composer install installation code (if the server has already installed the composer environment, it will still be installed)
 
  • Some basic information about the database that configures the parameters.yml file
 
  • Re-edit the domain name
cd /etc/nginx/sites-available
Modify the server name under the server
root
error_log
access_log
  • Create soft link
cd /etc/nginx/sites-enabled
ln -s ../sites-available/yao-lin yao-lin
  • Pass files from local to server
scp /home/lihe/lv/lin/src/AppBundle/Controller/Api/UserController.php root@ip:/home/chris/www/lin/src/AppBundle/Controller/Api/
Restart nginx sudo service nginx restart
  • Add domain name (from Alibaba Cloud server)
Go to Server->Cloud Analytics->readtv.cn (first-level domain name)->host record ()->record value (2**.*.**.*)->save
wait ten minutes

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326354923&siteId=291194637