ubiquity icon indicating copy to clipboard operation
ubiquity copied to clipboard

Feature request - Ubiquity serve => Possibility to add php version to use as param

Open Nyrtub opened this issue 3 years ago • 2 comments

Summary

For developper, Ubiquity serve -h=xxx.xxx.xxx.xxx --phpversion=php7.4 (for example)

Motivation

I test Ubiquity on multiple php version server

Compatibility with Ubiquity's philosophy

  • ease of use

Expected results

Actually, i modified Ubiquity script Example : system("php7.4 ../composer.phar require....")

Nyrtub avatar Feb 13 '22 19:02 Nyrtub

This assumes that the specified php version is accessible from the system PATH. This seems a bit hazardous.

You could also make a small script modifying your PATH, to switch from one version to another, before launching the server... or using Docker

This would be more reliable.

jcheron avatar Feb 14 '22 00:02 jcheron

I could... But not satisfied. If you don't use Docker and you have a LAMP server ready to use, you don't modify. I understand your point of view.

Nyrtub avatar Feb 14 '22 06:02 Nyrtub