OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce Vagrant: Shared Working Directory – How to sync /usr/share/nginx/html/oroapp/ ?

This topic contains 7 replies, has 3 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 2 weeks, 5 days ago.

  • Creator
    Topic
  • #38509

    Frank
    Participant

    Vagrant: Shared Working Directory – How to sync host’s working directory with guest’s /usr/share/nginx/html/oroapp/ -folder?

    Hi Andrey,

    I am new in using Vagrant for Oro.

    Host’s ~/project-directory, and guest’s /Vagrant- directory are shared, and synchronzed automatically.

    However, I need to synchronize host’s project-directory with guest’s /usr/share/nginx/html/oroapp – directory.

    What would recommend to achive this?
    May be to put a sym link from /usr/share/nginx/html/oroapp to /vagrant? But this should not work! — ???

    Thanks a lot for ‘urgent’ help!

    Kind regards
    Frank

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #38515
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Currently, Vagrantfiles aimed to get installed Oro applications just for review/familiarization and not ready for setting up the development environment yet.

    However, if you want to configure sync between host and VM app folders, there is the following workaround:

    1) Replace in the Vagrantfile, the string

    # config.vm.synced_folder “../data”, “/home/vagrant/www”

    to the strings

    config.vm.synced_folder “.”, “/usr/share/nginx/html/oroapp”, type: “rsync”,
    rsync__exclude: [“.vagrant/”, “.git/”, “.idea/”, “vendor/”, “var/”, “public/”],
    rsync__chown: false

    2) After this run the command “vagrant reload” once

    3) After that use “vagrant rsync” (https://www.vagrantup.com/docs/cli/rsync.html) or “vagrant rsync-auto” (https://www.vagrantup.com/docs/cli/rsync-auto.html) command to run file synchronization between host and VM application folders.

    #38518

    Frank
    Participant

    As Vagrant rsync is unidectional, your Step1 will overwrite guest-path /usr/share/nginx/html/oroapp with content of host’s /project-path/* (execpt given exclude-subfolders).

    That means, code outside the exclude-folders should be exactly the same in host’s projectfolder and guests /usr/share/nginx/html/oroapp-folder.

    Is that the case?

    Thanks a lot
    Frank

    #38519

    Frank
    Participant

    Hi Andrey,

    it seems to work really … in prod-mod.

    Trying http://localhost/index_dev.php results in a FileLoaderLoadException:

    The file “parameters.yml” does not exist (in: /usr/share/nginx/html/oroapp/src/../config) in parameters.yml (which is being imported from “/usr/share/nginx/html/oroapp/src/../config/config.yml”).

    Debugging-features are pretty nice, so it would be great to make use of them.

    Thanks a lot
    Frank

    #40925
    royjones.r
    royjones.r
    Participant

    Hi Andrey, you know how to install Orocommerce in Cpanel process?
    Thanks

    #40926
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi,
    Unfortunately, I don’t have experience with any hosting control panels including cPanel.

    #40927
    royjones.r
    royjones.r
    Participant

    Thanks Friend Andrey, but you know if have this possibility?

    #40928
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    If the hosting meets all the system requirements there should be no issues.
    See OroCommerce System Requirements for the reference.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No