Skip to content

Commit

Permalink
🐛 FIX: #159
Browse files Browse the repository at this point in the history
  • Loading branch information
apolopena committed Feb 8, 2022
1 parent 031ead4 commit edc9cbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RUN sudo bash -c ". /tmp/install-xdebug.sh" && rm /tmp/install-xdebug.sh
RUN bash -c ". /tmp/update-composer.sh" && rm /tmp/update-composer.sh

# Scaffold the Laravel project
RUN sudo bash -c ". /tmp/scaffold-project.sh" && rm /tmp/scaffold-project.sh
RUN bash -c ". /tmp/scaffold-project.sh" && rm /tmp/scaffold-project.sh

# Force the docker image to build by incrementing this value
ENV INVALIDATE_CACHE=230
4 changes: 2 additions & 2 deletions .gp/bash/scaffold-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ _exitcode=$?
if [ $_exitcode -ne 0 ]; then
>&2 echo " ERROR $?: failed to create Laravel $_lv project scaffolding in $_scaff_dest" | tee -a $_log
else
chown -R gitpod:gitpod "$_scaff_dest"
sudo chown -R gitpod:gitpod "$_scaff_dest"
cd "$_scaff_dest" || exit 1
echo " SUCCESS: $(php artisan --version) project scaffolding created in $_scaff_dest" | tee -a $_log

Expand All @@ -49,7 +49,7 @@ else
cd "$_scaff_dest/public" && composer create-project phpmyadmin/phpmyadmin
_exitcode_phpmyadmin=$?
if [ $_exitcode_phpmyadmin -eq 0 ]; then
chown -R gitpod:gitpod "$_scaff_dest/public/phpmyadmin"
sudo chown -R gitpod:gitpod "$_scaff_dest/public/phpmyadmin"
echo " SUCCESS: phpmyadmin installed to $_scaff_dest/public" | tee -a $_log
else
>&2 echo " ERROR $?: phpmyadmin failed to install" | tee -a $_log
Expand Down

0 comments on commit edc9cbd

Please sign in to comment.