cancel
Showing results for 
Search instead for 
Did you mean: 

2.3.5/2.4 Development from Mac

2.3.5/2.4 Development from Mac

We have a 2.3.5 Magento instance, which will be going to 2.4 soon. 

 

I'm trying to determine the best way to:

A. Do development work

B. Synch these changes - both database and code - with the live instance running on Nexcess

 

What tools - and where are folks using and recommend for development?

Do most people develop on an instance on their hosting platform or locally?

What editor(s) are recommended?

Best tool and practices for change/code management?

Database synch/management tools?

What other tools are people using to do what functions?

 

I work on a Mac and would want to either use Mac-based or browser-based tools.

 

Thanks.

7 REPLIES 7

Re: 2.3.5/2.4 Development from Mac

Hi @SJ_Med


You may use the following 
A) For development
> IDE - PhpStorm (https://www.jetbrains.com/phpstorm/download/#section=mac ) It is a paid IDE but has a lot of feature.

> Plugin for the PhpStorm - https://plugins.jetbrains.com/plugin/8024-magento-phpstorm
> Most people develop on their local environment.
> You may use Docker or the normal  virtual box setup.

Do not use shared folder concept if you are working with VirtualBox because it is very slow.
Keep your code files in the VirtualBox using the PhpStom deployments.

> Using PhpStorm it self you can connect to local and remote databases. Or you may use the MySql Workbench

 

To deploy the code you may use Deployer (https://github.com/deployphp/deployer)

 

For version control you may use Git( Bitbucket, GitHub etc)

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: 2.3.5/2.4 Development from Mac

Thank you Mukesh - this is exactly what I needed. I'm going to leave this open for a bit to see if there are other additions from folks, but this is the kind of specific information I was looking for! I'm sure I'll have some questions after I look through this a bit.

Re: 2.3.5/2.4 Development from Mac

Hi Mukesh,

 

I realized I had an important process question - does the phpStorm IDE allow line by line debugging? One of the most important aspects I need to be able to handle the debugging of both a local/dev environment and the same for the production instance - if there's a problem once I implement any code.

 

Thanks.

Re: 2.3.5/2.4 Development from Mac

I have phpStorm and am working to configure my Mac. I have MAMP and it's on port 81. The default apache service, that is "built-in" to the Mac is on port 80.

 

I can't quite figure out how to get my Mac Terminal (or Termius) to connect to port 81 so I can install Magento on the MAMP server.

 

What am I missing?

How do I install Magento 2 on my Mac?

Can I use the port 80 built-in Apache server? (When I try this, I get php issues with functions that need to be added. I would need to change the php version on this one, and probably still add/configure some php options...)

 

Thanks in advance - this is a lot of configuring to get everything set and working.... No doubt there will be more questions!

Re: 2.3.5/2.4 Development from Mac


@Mukesh Tiwari wrote:

Hi @SJ_Med


You may use the following 
A) For development
> IDE - PhpStorm (https://www.jetbrains.com/phpstorm/download/#section=mac  mycfavisit.com) It is a paid IDE but has a lot of feature.

> Plugin for the PhpStorm - https://plugins.jetbrains.com/plugin/8024-magento-phpstorm
> Most people develop on their local environment.
> You may use Docker or the normal  virtual box setup.

Do not use shared folder concept if you are working with VirtualBox because it is very slow.
Keep your code files in the VirtualBox using the PhpStom deployments.

> Using PhpStorm it self you can connect to local and remote databases. Or you may use the MySql Workbench

 

To deploy the code you may use Deployer (https://github.com/deployphp/deployer)

 

For version control you may use Git( Bitbucket, GitHub etc)


Thanks for sharing useful post here.

Re: 2.3.5/2.4 Development from Mac

To work with Mac I suggest you to install Valet+. https://github.com/weprovide/valet-plus . I use it and magento is fast. You have also mailhog to check mail locally.

 

Re: 2.3.5/2.4 Development from Mac

Thanks for the suggestion filippoesposto.

 

I installed valet +. I'm getting an issue with debug install, which seems to be a known issue:

 

[PECL] Xdebug not found, installing...

In Pecl.php line 157:
                                                                                     
  Could not find ini definition for: xdebug in /usr/local/etc/valet-php/7.2/php.ini  
                                                                                     
xdebug [--remote_autostart REMOTE_AUTOSTART] [--] [<mode>]

When I looked in the locations mentioned, there is no php.ini, though I would have expected to find one there. Being somewhat unsure, it didn't seem t smart to go creating .ini files without knowing for sure they were needed... Any thoughts?

 

I'm also trying to install magento 2.4.2-p1 in my Sites/magento242p1 subdir with the following command:

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition /Sites/magento242p1

 

but keep getting the following error:

Creating a "magento/project-community-edition" project at "/Sites/magento242p1"
Installing magento/project-community-edition (2.4.2-p1)

                                  
  [ErrorException]                
  mkdir(): Read-only file system  
                                  

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package>] [<directory>] [<version>]

I can't tell which location (or why) it can't do the mkdir....

 

Any help on either of these?

 

Thanks.