I have followed the tutorial and installed latest version of laravel with docker.
The problem is asset files are not getting uploaded while I have given the correct path for it.

Please help me with this?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @humblecoder,

Can you confirm if you followed this tutorial :

https://www.digitalocean.com/community/tutorials/how-to-install-and-set-up-laravel-with-docker-compose-on-ubuntu-20-04

Additionally, I’m not sure which asset files are you referring to exactly. Can you please provide with as much information as possible in order to provide you with a more accurate answer?

Regards,
KFSys

by Erika Heidi
To containerize an application refers to the process of adapting an application and its components in order to be able to run it in lightweight environments known as containers. Such environments are isolated and disposable, and can be leveraged for developing, testing, and deploying applications to production. In this guide, we'll use Docker Compose to containerize a Laravel application for development on Ubuntu 20.04.
  • Yes, I followed this tutorial but instead of downloading demo application in step 1, I downloaded laravel latest release.

    The assets I am referring to are the css/js files placed in public directory of laravel app.

    thanks.

    • Hi @humblecoder,

      How are you calling the css and js files inside the public_html folder?

      Are you using the following way :

      <script src="{{ asset('js/app.js') }}" defer></script>
      

      or something else?

      Regards,
      KFSys

Submit an Answer