1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHPStorm Development Testing with SSH or Github?

Discussion in 'XenForo Development Discussions' started by Marcus, Jul 26, 2015.

  1. Marcus

    Marcus Well-Known Member

    Currently I have setup PHPStorm to upload file changes from my desktop project directory to my development www directory. After I change the content of a file I click on SAVE ALL and the file will be uploaded to the development server, then I test my changes in the web browser.

    How is the process of testing code with Github integration? Is there an automated deployment tool (>>) available? It looks like PHPStorm > Github >> Development Server

    How do you program and test your code using PHPStorm?
     
  2. Jake B.

    Jake B. Well-Known Member

    Any particular reason you don't have some sort of AMP stack on your localhost for development? It's much faster and easier. Or even using something like Vagrant.
     
    0ptima likes this.
  3. Marcus

    Marcus Well-Known Member

    I use Windows and I have not seen a clean nginx mysql installation package.
     
  4. Jake B.

    Jake B. Well-Known Member

    Then don't use nginx, the Web server makes little difference. If you really want nginx use vagrant to setup a develop the environment.
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    Marcus and Jake B. like this.
  6. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

  7. NixFifty

    NixFifty Well-Known Member

    I believe you can set PHPStorm to recognise the VCS your project (or a directory) is using and each time you commit your changes, they'll be uploaded to the deployment server you choose.

    Another vagrant user here too.
     
  8. Liam W

    Liam W Well-Known Member

    What actually is Vagrant? I've looked at the site but didn't actually understand what it did...

    Anyhow, I don't use any version controlling system. I just use PHPStorm with the local server...

    Liam
     
  9. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    I am not sure either... let's shake hands! :D

    And for VCS I use github with some hooks enabled so that I can manage the versions of my add-ons with as less pain as possible :D
     
  10. Jake B.

    Jake B. Well-Known Member

    It's a VM for development. It actually uses VirtualBox to create a VM for you to use as a development/testing environment. Also creates a directory that you can access from OSX/Windows/whatever you use as the Host OS to develop in so you're developing on your normal OS, but it's being run on a VM that you can view in the browser with it's IP address. It's pretty neat.
     
  11. Marcus

    Marcus Well-Known Member

    I didn't want to install multiple third party tools at my private computer. Bitnami seems like a large enough company that would not surprise the user with bloatware.

    How compare Vagrant against Bitnami? My first guess was that Vagrant is a very small addon and loads all neded tools mentioned in the vagrant setup from the internet. But when I download the files, Vagrant is 160 MB [without nginx etc] and Bitnamix is 65 MB [with nginx].


    PHPStorm greatly integrates with GitHub, and on GitHub I can use a webhook WHICH automatically Pushes to the Development server. But I guess the synchronization is not file to file, but the whole Github project is downloaded as .git and then the development process starts (which takes like 10 minutes). That was not what I wanted :)
     
    Last edited: Jul 27, 2015
  12. Chris D

    Chris D XenForo Developer Staff Member

    You're comparing apples with oranges.

    Vagrant is a tool used to provision virtual machines. The Bitnami nginx stack I linked to is a development stack much like WAMP. I use it myself (albeit the WAMP/MAMP version, not nginx), I can vouch that it doesn't include any unnecessary prerequisites and the environment is easy enough to customise.
     
    Mr. Goodie2Shoes and Jake B. like this.
  13. Marcus

    Marcus Well-Known Member

    Thanks Chris D. I read that there are multiple bitnami releases and one of them would setup within a virtual machine, but I didn't really studied bitnami. I will go with bitnami then, as I just have to install one product without configuring it, and I really just need the most simpliest solution to execute my development code :)
     
  14. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    @Chris D with vagrant, can I set VMs with different server specs with a single XenForo root?
     
  15. Marcus

    Marcus Well-Known Member

    Do you use Git Integration with your Development (1 Developer) and does it help you with coding / reviewing?

    My current setup will be Windows + PHPStorm + bitnami. I may just enable PHPStorms Git Integration, but I wonder how that helps when there is just one developer programming.
     
  16. Marcus

    Marcus Well-Known Member

  17. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    XenForo has a helper method for that:
    PHP:
    XenForo_Application::arrayColumn()
    ;)
     
  18. Chris D

    Chris D XenForo Developer Staff Member

    Also should be relatively trivial to upgrade the PHP version within the stack. They have a fairly helpful support forum, perhaps someone has done the same thing.
     
  19. Marcus

    Marcus Well-Known Member

    Some thoughts about upgrading bitnami and a tip how to move complete databases to a new installation.

    I wanted to install the new apache / php 7 beta 3 release. At the first prompt you see bitnami just installs "mysql". I thought that's because I already installed the nginx release.

    So I clicked on "deinstall nginx bitnami" on windows 10 settings. Then I thought it might be possible that also all my data including web and database will be removed. The bitnami windows installer is by the way not recognized by windows, it shows as "unidentified program", which is pretty surprising for a huge company. I stopped the process of deinstalling by hard forcing the program to stop. Now the bitnami nginx stack can not be removed by windows 10 anymore.

    My nginx stack database was not removed, so I could copy the whole mysql/data folder to the new apache stack and I can access all my data.
     
  20. Marcus

    Marcus Well-Known Member

    The "apache php 7 beta 3" windows stack returns this from phpinfo():
    PHP Version 7.0.0beta2
     
    Last edited: Aug 12, 2015

Share This Page