Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix various installer issues. #4096

Merged
merged 2 commits into from
Oct 2, 2017
Merged

Conversation

tiagom62
Copy link
Contributor

@tiagom62 tiagom62 commented Oct 2, 2017

Hopefully this pr is better.

Fixed various installer issues. V4 was unable to install on centOS 7 and 6.

Global
*Consistent indentation of spaces instead of mixed spaces and tabs.
*Switched to copying .env.example and setting values using sed.

CentOS 7 specific
*Switched centOS 7 installs to PHP7.1. doctrine/inflector v1.2.0 requires php ^7.0
*Added php71u-json required by composer.
*Added php71u-simplexml required by aws-sdk-php.
*Created cron for laravel scheduler.
*Run key:generate before migrations.
*Run migrations during install.
*Remove passport:install. Web setup handles this.

CentOS 6 specific
*Switched centOS 6 installs to PHP7.1. doctrine/inflector v1.2.0 requires php ^7.0
*Added php71u-json required by composer.
*Added php71u-simplexml required by aws-sdk-php.
*Switched to using git clone from wget for getting the application.
*Run key:generate before migrations.
*Run migrations during install.
*Remove passport:install. Web setup handles this.

More pr's to come. Will be testing and fixing installs for other distros.

View the Concise diff because of the indentation changes here

@tiagom62 tiagom62 requested a review from snipe as a code owner October 2, 2017 01:58
@dmeltzer
Copy link
Contributor

dmeltzer commented Oct 2, 2017

doctrine/inflector (and related bits) were fixed to use the latest php5 version. It's still a good idea to require php7 for future proofing at this point, but snipe-it should run with php5 as of current develop.

@tiagom62
Copy link
Contributor Author

tiagom62 commented Oct 2, 2017

Unless there is a good reason to stick with php5, I vote for php7 across the board for the reason you stated.

@tiagom62 tiagom62 force-pushed the centos7_install_fixes branch from 001f88a to 410b359 Compare October 2, 2017 14:36
@snipe
Copy link
Owner

snipe commented Oct 2, 2017

Yeah, while we'll continue to support php5 as long as the version of laravel we're using does, I don't see any reason not to use php7 when we're installing php for them.

@snipe snipe merged commit 26423c5 into snipe:develop Oct 2, 2017
@tiagom62 tiagom62 deleted the centos7_install_fixes branch October 2, 2017 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants