Deploying Symfony 2.5.3 website to production server

后端 未结 4 1221
渐次进展
渐次进展 2021-01-23 17:16

I have been working on a website in development environment built on top of Symfony framework and now it is time to deploy it to live site, in development environment we run the

4条回答
  •  长情又很酷
    2021-01-23 17:59

    If you are running ubuntu do the following

      sudo nano /etc/apache2/sites-enabled/000-default.conf
    

    change document root to and save

      DocumentRoot /var/www/html/web
    

    Then run

      sudo service apache2 restart
    

    Then run

     cd /var/www/html
    
     php app/console cache:clear --env=prod --no-debug
    

    all done

提交回复
热议问题