Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
218 votes
5 answers
226k views

How to deploy correctly when using Composer's develop / production switch?

Composer has the option to load several dependencies only while being in development, so the tools will not be installed in production (on the live server). This is (in theory) very handy for scripts ...
Sliq's user avatar
  • 16.3k
160 votes
15 answers
68k views

What is your preferred php deployment strategy? [closed]

I'm beginning a new project in PHP and I'd love to get some feedback from other developers on their preferred strategy for PHP deployment. I'd love to automate things a bit so that once changes are ...
GloryFish's user avatar
  • 13.3k
41 votes
9 answers
25k views

Automate Deployment for Web Applications? [closed]

My team is currently trying to automate the deployment of our .Net and PHP web applications. We want to streamline deployments, and to avoid the hassle and many of the headaches caused by doing it ...
Sam Wessel's user avatar
  • 8,850
35 votes
1 answer
29k views

phpStorm, do not index a folder / tree [closed]

I can't find the ability of phpStorm 5 to avoid indexing a specific folder. I don't want to exclude it from the Project-View, just don't want phpStorm to index the containing folders, classes, ...
LeMike's user avatar
  • 3,285
32 votes
5 answers
24k views

Using Git with shared hosting plan

So I started using Git together with this workflow to make a personal website (mostly for testing and to learn Git) and I am developing it locally on my laptop using Xampp. But now I would like to ...
Gladen's user avatar
  • 792
25 votes
5 answers
8k views

Do you use Phing? [closed]

Does anyone use Phing to deploy PHP applications, and if so how do you use it? We currently have a hand-written "setup" script that we run whenever we deploy a new instance of our project. We just ...
Sam McAfee's user avatar
  • 10.1k
25 votes
11 answers
33k views

How to automate migration (schema and data) for PHP/MySQL application

I have an application in PHP/MySQL. I am searching for an automated way upgrading database behind the application. I don't need to have the compatibility with older versions once it is upgraded. I ...
Sabya's user avatar
  • 11.8k
24 votes
8 answers
10k views

How to get started deploying PHP applications from a subversion repository?

I've heard the phrase "deploying applications" which sounds much better/easier/more reliable than uploading individual changed files to a server, but I don't know where to begin. I have a Zend ...
Andrew's user avatar
  • 235k
24 votes
3 answers
2k views

PHP Code Deployment Tips

In the past, I have been developing in a very amateurish fashion, meaning I had a local machine where I developed and tested code and a production machine to which I copied the code when I was done. ...
Steve's user avatar
  • 8,620
23 votes
5 answers
24k views

Laravel deployment... there is a standard way? [closed]

I'm starting to use Laravel 4 seriously in my projects. I understand that this framework offers many advantages when developing RESTful applications. But I understand that there is no consensus about ...
James's user avatar
  • 607
22 votes
2 answers
16k views

Automated deployment PHP in CI environment (Jenkins)

I'm currently looking into setting up a strong CI & deployment environment for a project shared across a small team of developers. Objective is to bring some consistency in the way things are ...
Lem's user avatar
  • 881
21 votes
3 answers
10k views

PHP opcache reset + symlink-style deployment

I am trying to reset PHP opcache after a symlink-style deployment. There is the opcache_reset.php file in my project which is executing by wget after the document root's symlink replacement: <?php ...
Vitaly Chirkov's user avatar
20 votes
6 answers
32k views

Yii2: How to prepare for debug and production environment?

I know Yii defines and uses the constants YII_DEBUG and YII_ENV. Of course, they are set to to 'true' and 'dev' on my local machine. This is because the basic app template has prepared it this way in ...
robsch's user avatar
  • 9,568
20 votes
3 answers
4k views

Packing, caching, JS and CSS in PHP that differentiate between development and production environment

I am trying to make development easy and have highly optimized output in production. The goals of what I am trying to do is: Make production pages fast! I would like that the Google Page Speed and ...
Chris Cinelli's user avatar
19 votes
6 answers
6k views

Repository deployment and Composer : what workflow?

As a PHP developer I find myself working with Composer a lot. In the past it was on personal projects and such so I didn't have much problems with it, but now with Laravel 4 it's on project that ...
Maxime Fabre's user avatar
  • 2,252
15 votes
4 answers
3k views

PHP deployment using Git. How can I make it more automated?

I am in charge of launching web projects and it takes a little too long currently from client sign off to final launch. It is on a server which I have root access to, but it runs Plesk so that the ...
Treffynnon's user avatar
  • 21.5k
14 votes
3 answers
7k views

Symfony 2 without SSH access

I have a developed a small web-app in Symfony 2 and Doctrine 2. Can i deploy it to a web-host that doesn't give SSH access? I ask this because i see there are a lot of task that must be done from ...
Dan Cearnau's user avatar
14 votes
5 answers
3k views

Setting up a PHP web project, the infrastructure

How can I best set up my PHP (LAMP) development environment so that I have development, staging and production servers. One-"click" deployment to any of those, as well as one-click rollback to any ...
noob source's user avatar
14 votes
7 answers
5k views

How do you deploy a website to your webservers?

At my company we have a group of 8 web developers for our business web site (entirely written in PHP, but that shouldn't matter). Everyone in the group is working on different projects at the same ...
Dan Soap's user avatar
  • 10.2k
13 votes
6 answers
4k views

How to do deployment for php application

I am currently developing a php-application for a charity organization and I am now in the stage of defining the deployment practices. Our application is using both Zend Framework and Doctrine. The ...
Peter Smit's user avatar
  • 28.4k
13 votes
3 answers
585 views

How to set up your own PEAR Channel?

I am looking for instructions on how to setup a PEAR channel for our project so that we can deploy it with the pear installer. I have searched the web for a while and cannot find any straightforward ...
Sam McAfee's user avatar
  • 10.1k
12 votes
3 answers
25k views

How to protect my source code when deployed?

Is there a way to encrypt or enclose my code on my Linux server after deployment? I know Zend does some kind of encryption, right? Is that what people use? Is this even possible? How do I go about ...
rockstardev's user avatar
  • 13.5k
12 votes
5 answers
7k views

Deploy a PHP project from Git to a server that does not have Git installed

I need to find a method of deploying a PHP project stored in a git repo to a staging and production server that do not have git installed. Scripts I've found so far (ie Capistrano) require Git on the ...
designermonkey's user avatar
12 votes
1 answer
8k views

Deploy Symfony2 application to prod environment causes post-install-cmd exception

I have read Symfony2 docs for How to deploy a Symfony2 application but I'm having some issues|warnings. As said here the first command I run is this one: composer install --no-dev --optimize-...
ReynierPM's user avatar
  • 18.4k
12 votes
3 answers
2k views

Deploying a Mercurial Repository to Production - Security Concerns and Tips

In my research, I found some concern around deploying an online PHP application while leaving its ".hg" folder or ".svn" folders in place on the production server. Unfortunately, I was not able to ...
bitsoflogic's user avatar
  • 1,184
12 votes
3 answers
3k views

Automating Wordpress Development and Deployment

Has anyone ever worked on a WordPress project with multiple developers in different locations? Are there best practices around distributed development teams and automated deployments? I have a team ...
Dave Morris's user avatar
12 votes
1 answer
1k views

HTTP GET requests being made to my website for unknown .php files. Why and how to prevent this

I have an application deployed on a digital ocean droplet. About 1 day after deploying, my server crashed, the final logs look like this: GET /vehicle/tank/all/1 304 2.965 ms - - GET /vehicle/tank/...
mLoftus's user avatar
  • 141
11 votes
8 answers
29k views

Class Not found in AppKernel.php

I'm trying to deploy my Symfony2 project. When I run the command php app/console cache:clear --env=prod --no-debug I get the following error: PHP Fatal error: Class 'Acme\MainBundle\AcmeMainBundle' ...
Jason Lin's user avatar
  • 1,997
11 votes
2 answers
16k views

Difference between read & execute, file permission

This may sound like a pretty basic question, but I'm a bit stumped on what constitutes as "reading" a file, and "executing" a file. For example: User 1 buys a ticket from an online website, and ...
arsenalftw067's user avatar
11 votes
6 answers
2k views

Should I use Git for deployment of web apps?

I use Git to track local changes in my PHP web applications, and I was wondering if it would be a good idea to use Git on the server as well, so that I could just use git push to deploy my changes. ...
DLH's user avatar
  • 2,821
11 votes
1 answer
511 views

Receiving "Deployment Role Instances Not In Started State After 30 seconds" Azure PHP

I keep receiving this message when trying to deploy a test php application into my Azure Emulator Using session id 1 Warning : Remapping public port 80 to 81 to avoid conflict during emulation. ...
user1332709's user avatar
10 votes
2 answers
11k views

I can't deploy production mode : Command returned non-zero exit code (magento 2.1)

I'm struggling with a big issue, the magento deployment command failed. php bin/magento deploy:mode:set production return the following error: Command returned non-zero exit code: /usr/bin/php7.0 -...
D. Kerat's user avatar
  • 113
10 votes
6 answers
33k views

Set location of laravel .env

So I just published a build of laravel to my production server. But the .env file was readable when I uploaded it. So I uploaded it to root of my site next to the public_html/ directory. My question ...
Sjoerd de Wit's user avatar
10 votes
6 answers
5k views

What tools/languages do you use for PHP web application deployment?

For my web application running on LAMP, I need to be able to deploy database migrations and code changes on multiple servers and be able to test deployment afterwards, all of this automatically done ...
Franck's user avatar
  • 6,305
10 votes
1 answer
4k views

Deploying / Continuous integration of a Symfony 2 application with Jenkins/Hudson

I've developed an application which uses the Symfony 2 framework. The application code resides in a Bundle, and on my local machine I just downloaded the Symfony2 Standard Distribution and added the ...
Craig's user avatar
  • 2,193
10 votes
3 answers
11k views

Deployment of PHP project with Hudson/Jenkins

Currently I deploy my PHP project using Subversion checkout on the target machine. I use Hudson/Jenkins for testing and code analysis purposes, but can and should it be used for deployment? If so, how?...
user avatar
10 votes
1 answer
2k views

Symlinks not updated until php5-fpm isn't killed and restarted

My current deploy logic (using laravel envoy) creates a symlink between the "current" folder and the latest release folder. The problem is that the symlink is not immediately updated. In fact I need ...
Tudor Ravoiu's user avatar
  • 2,140
10 votes
1 answer
321 views

Generating API documents in Git Workflow

Not sure if this should be here or on Programmers. Generating API documents I would like some advice on how I should generate API documentation for an internal project. I am relatively new to Git ...
Aydin Hassan's user avatar
  • 1,475
9 votes
7 answers
6k views

Web app deployment Best Practices : how to manage local & live files?

I am writing php web applications, and simply deploy them via FTP. To make it work, I often have some tweaking/debugging to do given that I have little control over the (free) web server hosting me, ...
Polypheme's user avatar
  • 444
9 votes
3 answers
9k views

Push rejected, failed to detect set buildpack heroku/php

I'm trying to deploy my php app from github to heroku, but it's not working. I've had experience with deploying php apps to heroku, but for some reason, I'm having trouble this time. This is what I'...
johnwj's user avatar
  • 449
9 votes
3 answers
3k views

Is it possible to compile Symfony2 assetic:dump and deploy that rather than run it on the server?

I have a problem on my production server where assetic:dump is timing out on a Capifony deploy (but not always). Running assetic:dump locally is fine. Also deploying to a different staging (much less ...
ed209's user avatar
  • 11.2k
9 votes
4 answers
4k views

Deploying a PHP webapp to multiple EC2 instances behind a Elastic Load Balancer

my question is basically two questions, but since they are closely related I thought that it makes sense to ask them en-bloque. Case: I am running a webapplication, which is distributed over multiple ...
Joshua's user avatar
  • 116
9 votes
1 answer
5k views

How can I run composer install --dev on Heroku?

How can I override default Heroku behavior about dependencies installation with Composer? AFAIK Heroku executes composer install --no-dev by default which is perfect for prod, but what if I intend to ...
Victor Bocharsky's user avatar
9 votes
1 answer
791 views

Laravel deployement Your requirements could not be resolved to an installable set of packages

When I am trying to deploy my laravel project and do a php composer.phar install I get this annoying error. I pulled in my project via git with a git clone. And when I surf to my domainname I would ...
Moussa Chaabar's user avatar
8 votes
6 answers
7k views

Referencing the current server in Capistrano task

How would I reference the current server in a Capistrano task? I want to curl a local file to clear the APC cache but the server does not listen on localhost so I need the server's IP address. For ...
Brad Dwyer's user avatar
  • 6,444
8 votes
11 answers
8k views

Deploying to multiple servers

I have to deploy my php/html/css/etc code to multiple servers and i am looking at my options for software that allows easy and secure deployment to multiple servers. Also helps if it could be tied ...
Matthew Encinas's user avatar
8 votes
4 answers
5k views

laravel 5 heroku 404 not found ngix

I'm getting a pretty weird error while trying to deploy a Laravel 5 application to Heroku. If I try to access my root domain https://my-app.herokuapp.com it works fine. However, if I try to access and ...
ThreeAccents's user avatar
  • 1,852
8 votes
2 answers
3k views

What's the preferred way of deploying a Symfony2 application?

With symfony 1, there was a simple built in task for doing deployments via rsync. symfony project:deploy [--go] [--rsync-dir="..."] [--rsync-options[="..."]] server For larger, more complicated ...
Alex Gilbert's user avatar
8 votes
1 answer
2k views

Git Deploy PHP App to MULTIPLE EC2 Nodes

I've been reading a lot of articles that talk about post-update hooks to deploy websites using Git, however I don't understand how this is done on EC2. I want to use the Auto Scaling feature of EC2 ...
Nick's user avatar
  • 271

1
2 3 4 5
20