Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant "No input file specified."

I am a python developer and my company wanted to do a project in PHP -laravel. Also he wanted me to start with Vagrant. So I came across this simple tutorial and tried to start with it. But still I'm getting error No input file specified.

I have been searching since whole day today for this issue, I have came across many posts which includes same query. I tried almost all the solutions from laravel.io and some stack overflow queries But did not got the exact solution.

Directory Structure:

Git Cloned Homestead - /home/laxmikant/Work/PHPWORK/Homestead

Mapped location - /home/laxmikant/Work/PHPWORK/codebase (totally empty directory)

Folders mapped to : /home/vagrant/codebase (Contains Laravel project)

Here is my Homestead.yaml

---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Work/PHPWORK/codebase #-- The path on my local machine 
      to: /home/vagrant/codebase  #-- The path from the vagrant box 

sites:
    - map: homestead.app
      to: /home/vagrant/codebase/Laravel/public #-- The path from the vagrant box which is mapped with folders 

databases:
    - homestead

variables:
    - key: APP_ENV
      value: local

Also I am assuming that,By Vagrant ssh when the project is created using :

composer create-project laravel/laravel Laravel --prefer-dist

It should also get synced with codebase directory of vagrant box So the queries are:

  • Is this assumption correct? if so why map and to are not getting synced? and
  • What is the reason that I am getting the error "No input file specified.?
like image 309
Laxmikant Avatar asked Sep 27 '22 12:09

Laxmikant


2 Answers

The assumption is correct whatever is in /home/vagrant/codebase will also end up in your ~/Work/PHPWORK/codebase. After installing laravel via composer if the "no input file" error persists you probably need to reload configuration via running

vagrant provision

You should probably also add a homestead.app entry on your hosts file.

like image 116
tix3 Avatar answered Sep 30 '22 08:09

tix3


Thanks for your help.

It worked well with the following solutions:

nginx configured manually for my homestead.app

and changed, Sync locations in Vagrantfile

like image 21
Laxmikant Avatar answered Sep 30 '22 08:09

Laxmikant