Skip to content

DuchkinaNast/symcmf

 
 

Repository files navigation

Symfony CMF

Setup development environment with Homestead

  1. Clone project

    with SSH

        git clone [email protected]:symcmf/symcmf.git
    

    or with HTTPS

        git clone https://github.com/symcmf/symcmf.git
    
  2. Run composer

    ```
    composer install --no-scripts
    ```
    
  3. Setup homestead/vagrant environment in project folder:

    ./vendor/bin/homestead make
    
  4. Edit Homestead.yaml:

    Remove the following lines from Homestead.yaml if you don't have this SSH keys on your machine (https://laravel.com/docs/master/homestead#installation-and-setup): Or generate and paste your SSH keys.

    authorize: ~/.ssh/id_rsa.pub
    keys:
        - ~/.ssh/id_rsa
    

    Set type option that tells Homestead to use the Symfony nginx configuration.

    sites:
       - map: homestead.app
         to: "/home/vagrant/yourprojectfolder/web"
         type: symfony
    
  5. Run vagrant

    vagrant up
    
  6. Run composer install for running scripts

    composer install
    
  7. Create all the database tables

    ./app/db-update.sh
    

    If you will get error "Permission denied" you have to change access rules with next command

    sudo chmod -R 777 app/
    

Symfony CMF Setup

  1. Setup CMF site

    ./app/setup.sh
    

    It will execute next commands:

    • php app/console sonata:page:create-site
    • php app/console sonata:page:update-core-routes --site=all
    • php app/console sonata:page:create-snapshots --site=all
    • php app/console fos:user:create --super-admin
    • php app/console assetic:dump web/
  2. After it, browse http://192.168.10.10, you should see the main page of application. Or add to your hosts file

       192.168.10.10  homestead.app
    

    and browse http://homestead.app.

About

No description, website, or topics provided.

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 80.3%
  • HTML 11.2%
  • JavaScript 6.6%
  • CSS 1.1%
  • Other 0.8%