There are a few common ways to work on MDOQ with Magento, some people simply have one method and stick to it, others swap between depending location/device. (if you're working from an iPad you can't really checkout the repo out locally)
Web Code Editor
- Create a new instance
- Change code using the web code editor (there are two to choose from VSCode or Codiad), changes will be reflected immediately.
- Once you finish your work you will need to use MDOQ to Git push for you.
- Follow the "I'm Done" process
Gotchas
- Because you aren't committing changes to see them, they won't be stored in git. This means you need to commit them before recreating the
code
component.
SFTP
- Create a new instance
- Enable SFTP for your instance
- Setup an SFTP connection to the instance.
- You can edit the code and your changes will be reflected as soon as you save the file (*depending on your SFTP client, programming IDE), no need for git push/pull
- Once you finish your work. If your SFTP client/programming IDE allows it you can git commit and push from the directory you are in. Or you can use MDOQ to Git push for you.
- Follow the "I'm Done" process
If you're using VSCode locally checkout this guide: Using VSCode Locally
If you're using PHPStorm locally checkout this guide: Using PHPStorm Locally
Gotchas
- Because you aren't committing changes to see them, they won't be stored in git. This means you need to commit them before recreating the
code
component.
SFTP Mount
This option requires your device to support SFTP mounts. We have convenience scripts for this please get in touch with us as they are still in their infancy. We would be more then happy to help you use them so we can improve them.
- Create a new instance
- Enable SFTP for your instance
- SFTP Mount using the credentials provided via MDOQ
- Open the location you have mounted.
- You can edit the code and your changes will be reflected as soon as you save the file, no need for git push/pull
- Once you finish your work you can git commit and push from the directory you are in using your IDE or from cli. Or you can use MDOQ to Git push for you.
- Follow the "I'm Done" process
Gotchas
- Because you aren't committing changes to see them, they won't be stored in git. This means you need to commit them before recreating the
code
component.
Github / Git
- Create a new instance
- (optional) if you want to checkout the repo locally
git clone [repo url] -b [ticket number]
- Edit files in the appropriate branch and commit them to Git.
- To see your changes you will have to use MDOQ to Git pull for you.
- Follow the "I'm Done" process
NFS
This is option is only available for clients with an on premise license.
Before starting the process you should already have the 'magento' drive mounted. If you need assistance with this please raise a support request.
- Create a new instance
- Open the directory for your instance, for example if you are working on a Magento 2 project and your instance ID is 1234 and you have the Magento drive mounted at
/magento
the path would be/magento/magento2/1234
- You can edit the code and your changes will be reflected as soon as you save the file, no need for git push/pull
- Once you finish your work you can git commit and push from the directory you are in using your IDE or from cli. Or you can use MDOQ to Git push for you.
- Follow the "I'm Done" process
Gotchas
- Because you aren't committing changes to see them, they won't be stored in git. This means you need to commit them before recreating the
code
component.