this is my first time deploying to gcp app engine.i got the following error any ideas on how to solve it
In PackageManifest.php line 178:
The /workspace/bootstrap/cache directory must be present and writable.
Solved! Go to Solution.
Hello @Danny69,
Welcome to the Google Cloud Community!
You can do the following troubleshooting options:
APP_SERVICES_CACHE: /tmp/services.php
APP_PACKAGES_CACHE: /tmp/packages.php
APP_CONFIG_CACHE: /tmp/config.php
APP_ROUTES_CACHE: /tmp/routes.php
"mkdir -p ./bootstrap/cache/",
Hello @Danny69,
Welcome to the Google Cloud Community!
You can do the following troubleshooting options:
APP_SERVICES_CACHE: /tmp/services.php
APP_PACKAGES_CACHE: /tmp/packages.php
APP_CONFIG_CACHE: /tmp/config.php
APP_ROUTES_CACHE: /tmp/routes.php
"mkdir -p ./bootstrap/cache/",
Thanks for your help. but I went to use compute engine. I created the virtual machine deployed my app it works I can access my login page. I do have a second challenge which is the database. I have a data base on my local machine I also use phpmyadmin there. should I create a cloud sql instance for my database and then upload the .sql file there?
You need to set 755 on your bootstrap cache file. Look at my docker file.
RUN chmod +x /usr/local/bin/entrypoint.sh && \
composer install --no-dev && \
npm install && \
chmod -R 775 node_modules && \
npm run build && \
chmod -R 775 public/build && \
php artisan cache:clear && \
php artisan optimize:clear && \
php artisan route:clear && \
chown -R www-data:www-data /var/www/html && \
chmod -R 755 /var/www/html/storage && \
chmod -R 755 /var/www/html/bootstrap/cache && \
php artisan storage:link && \
php artisan cache:clear && \
Thanks for your help. but I went to use compute engine. I created the virtual machine deployed my app it works I can access my login page. I do have a second challenge which is the database. I have a data base on my local machine I also use phpmyadmin there. should I create a cloud sql instance for my database and then upload the .sql file there?
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |