Skip to content

Commit

Permalink
install with composer
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramComputer committed Jan 7, 2024
1 parent 2a812c4 commit 7715125
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
echo 'mysqli.allow_local_infile = On' >> "$PHP_INI_DIR/php.ini"

RUN docker-php-ext-install pdo pdo_mysql mysqli
RUN composer install

COPY . /var/www/html/lwt

Expand Down
3 changes: 2 additions & 1 deletion INSTALL.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
apt_get_cmd=$(which apt-get)
yum_cmd=$(which yum)

packages="apache2 libapache2-mod-php php php-xml php-mbstring php-mysql mysql-server"
packages="apache2 libapache2-mod-php php php-xml php-mbstring php-mysql mysql-server composer"

echo "Installing dependencies"
if [ ! -z $apt_get_cmd ]; then
Expand All @@ -23,6 +23,7 @@ echo
echo "Enabling mbstring and mysqli (PHP extensions necessary for LWT)..."
sudo phpenmod -s apache2 mbstring
sudo phpenmod -s apache2 mysqli
sudo composer install
echo

# Database access settings
Expand Down

0 comments on commit 7715125

Please sign in to comment.