Skip to content

Failed opening required '/var/www/bootstrap/../vendor/autoload.php'  #119

@bugcy013

Description

@bugcy013

Hi Guys,

When we try to install with docker. I am getting this exception. please guide me. How to fix this

steps to reproduce

/wiki$ php composer.phar create-project ziishaned/opus


                                                                
  [InvalidArgumentException]                                    
  Could not find package ziishaned/opus with stability stable.  
                                                                

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

$ git clone https://github.com/ziishaned/opus.git
$ cp .env.dist .env

tech@dvwhk-:~/wiki/opus$ docker-compose up -d
Building app
Step 1/3 : FROM php:7.2-fpm
 ---> 9d11d506e313
Step 2/3 : RUN apt-get update   && apt-get install -y git zip libmcrypt-dev libfreetype6-dev libjpeg62-turbo-dev libpng-dev mysql-client libmagickwand-dev   && apt-get clean   && pecl install mcrypt imagick   && docker-php-ext-enable imagick   && docker-php-ext-install pdo_mysql   && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
 ---> Using cache
 ---> c8f73f9895e4
Step 3/3 : WORKDIR /var/www
 ---> Using cache
 ---> ad027695adbe
Successfully built ad027695adbe
Building web
Step 1/3 : FROM nginx:1.10
 ---> 0346349a1a64
Step 2/3 : ADD ./vhost.conf /etc/nginx/conf.d/default.conf
 ---> Using cache
 ---> bf324e771887
Step 3/3 : WORKDIR /var/www
 ---> Using cache
 ---> 0e0ba173d8b0
Successfully built 0e0ba173d8b0
Starting opus_mysql_1
Starting opus_app_1
Starting opus_web_1
tech@dvwhk-:~/wiki/opus$ docker-compose exec app php artisan key:generate

Warning: require(/var/www/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/bootstrap/autoload.php on line 17

Fatal error: require(): Failed opening required '/var/www/bootstrap/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/bootstrap/autoload.php on line 17
tech@dvwhk-:~/wiki/opus$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions