Skip to content

Instantly share code, notes, and snippets.

@heukirne
Created November 16, 2016 19:13
Show Gist options
  • Save heukirne/a93cd5717e9bba3a46ef355e71dc927f to your computer and use it in GitHub Desktop.
Save heukirne/a93cd5717e9bba3a46ef355e71dc927f to your computer and use it in GitHub Desktop.
Script to deploy fleetany-web
#!/bin/bash
rm -rf ./fleetany-web
svn checkout https://github.com/alientronics/fleetany-web.git/trunk fleetany-web/
cp configDir/php.ini fleetany-web/
cp configDir/tpms-bkp/.htaccess fleetany-web/
cp configDir/tpms-bkp/.htaccess-public fleetany-web/public/.htaccess
cp configDir/tpms-bkp/.env fleetany-web/
cd fleetany-web
curl -sS https://getcomposer.org/installer | php7 -c php.ini
php7 -c php.ini composer.phar install --no-dev --no-scripts
php7 -c php.ini -e artisan vendor:publish --provider=Kodeine\\Acl\\AclServiceProvider
php7 -c php.ini -e artisan vendor:publish --provider=Alientronics\\FleetanyWebGeofence\\FleetanyWebGeofenceServiceProvider
php7 -c php.ini -e artisan vendor:publish --provider=Alientronics\\FleetanyWebDriver\\FleetanyWebDriverServiceProvider
php7 -c php.ini -e artisan vendor:publish --provider=Alientronics\\FleetanyWebAttributes\\FleetanyWebAttributesServiceProvider
php7 -c php.ini -e artisan vendor:publish --provider=Alientronics\\FleetanyWebAdmin\\FleetanyWebAdminServiceProvider
php7 -c php.ini -e artisan clear-compiled
php7 -c php.ini -e artisan optimize
@mikaoelitiana
Copy link

Can you also share your .htaccess and .htaccess-public files content?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment