Comments (20)
I actually plan on making some demo videos for this soon. I'll keep this open until I do (hopefully soon).
from scotch-box.
I needed to add ~/.composser/vendor/bin to PATH and it worked... it was already installed.
the string is: export PATH="$PATH:$HOME/.rvm/bin:$HOME/.composer/vendor/bin"
next enter command . ~/.profile
from scotch-box.
Hi there, I'm assuming this ticket has been closed because some videos have been put together? Please can you provide links? Looking to try scotch box with Laravel :)
from scotch-box.
Reopening. You can follow the instructions from above
from scotch-box.
How much trouble would it be to modify the scotch-box vagrant image and add "~/.composser/vendor/bin" to PATH? It just seems like every user of scotch-box has to manually complete the installation of composer themselves which is supposed to come pre-installed.
from scotch-box.
This is already done @bill-barron. I can access composer
from the CLI on a fresh image. However, the version of composer is from 10/04/2014 and prints a warning that it needs to be updated. (Even without updating I have yet to run into an issue.)
It could be convenient for Scotch Box to auto-update select packages during provisioning.
from scotch-box.
@chrisvogt, @bill-barron is correct. Composer runs without a hitch (despite the warning), but the CLI 'laravel' command will not work (command not found) until ~/.bashrc is updated.
See the 2nd answer here: http://goo.gl/ for details; surely this can already be present in the vagrant box?
from scotch-box.
@mikethrussell, not sure if I follow you because I haven't run into this myself. I'm trying to research what the laravel
command is, and cannot find it - is this different than artisan
?
Regardless, until @ncerminara implements this (which I see in #29 he plans to), you should be able to bootstrap the Vagrant file and do this during provisioning.
Check out jakubgg/scotch-box4dev for an example of how to run shell scripts during provisioning. @mariuskubilius provides the command above (I haven't tested/confirmed):
export PATH="$PATH:$HOME/.rvm/bin:$HOME/.composer/vendor/bin"
Hope this helps out until the issue is resolved. (While you are at it, you may want to tell composer to auto-update during provisioning too.)
from scotch-box.
For laravel use this https://github.com/CodersAKL/laravel-vagrant
from scotch-box.
In regards to @FDiskas comment:
Scotch Box exceeds the minimum requirements for Laravel (besides this Path bug). For Laravel, you can use Scotch Box or Homestead. Homestead is officially supported by Laravel and is the best option for your Laravel projects.
from scotch-box.
Homestead I could't load for some reason. Scotch Box - needs to install the laravel manually and the project will not be at the public folder. And I like the SASS+COMPASS to be implemented as well. I don't want to do extra steps to make it work.
from scotch-box.
In hopes of clarifying any confusion this causes readers:
- Laravel runs perfectly fine with Scotch Box.
- Homestead is the best option for Laravel regardless if @FDiskas got it working or not.
from scotch-box.
Yes sure and for installing a Homestead you need to do all this stuff - why?: https://www.youtube.com/watch?v=7jPnneunSV4&list=PLiZKDvbBdxyYDYsMgQCnLVyTw84sR1VU3
Why not just make all this stuff automatically?
from scotch-box.
Hey guys
Run: vagrant box update
Composer and Laravel are now in the PATH
from scotch-box.
I still can't access my Laravel project using Scotch Box 2.0. I followed the instructions on the Scotch Box homepage: https://box.scotch.io/
I cloned the scotch box repo, and it subsequently added these files and directory:
$ ~: git clone https://github.com/scotch-io/scotch-box.git my-project
$ ~: cd my-project
$ my-project: ls
README.md Vagrantfile public/
But I'm confused as to what I should do after Step 5 in the Scotch Box 2.0 instructions in order to access my project. I tried cloning my existing Laravel project into the public folder:
$ my-project: cd public/
$ public: git clone https://github.com/my-username/my-laravel-project
$ public: ls public/
my-laravel-project/
But when I visit 192.168.33.10 in my browser, I just see the directory structure. So that isn't right (unless I'm missing a step here.) Or was I supposed to initially clone the Scotch Box repo into my existing Laravel project folder? Or something else?
Thanks!
from scotch-box.
Okay that makes sense.
Try
cd my-project # Go into whatever folder scotch box is
rm index.php # Get rid of that starter file because we don't need it
git clone https://github.com/my-username/my-laravel-project . # include a "dot" at the end to do current directory instead of my-laravel-project folder
Boom boom boom booom
from scotch-box.
Thanks, @ncerminara! That solved my issue.
And for clarity, I removed the index.php file from the public folder and also cloned my Laravel project inside that same public folder:
cd my-project/public
rm index.php
git clone https://github.com/my-username/my-laravel-project .
from scotch-box.
So you're good?
from scotch-box.
Composer works, laravel doesn't.
from scotch-box.
Followed this tutorial and it mostly worked, but there is an error.
http://dobsondev.com/scotch-box-laravel/
from scotch-box.
Related Issues (20)
- PHP Version with Pro
- Guest additions version outdated/incompatible HOT 3
- Can we get scotch.io to a LTS dist?
- SB 3.5 shows default home page for every project HOT 2
- Vagrant Up - Unable To Fetch HOT 2
- There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. HOT 1
- Laravel mix not working by default HOT 1
- Ubuntu 17.10 is EOL, and provisioning new box now fails as a result HOT 7
- Error with Craft CMS on Installation
- 38456 HOT 1
- Vagrant up not working HOT 1
- Vagrant up not working (MacOS) HOT 1
- Scotch Box 3.5 not running on macOS Catalina HOT 2
- Uncaught Error: Class 'PDO' not found HOT 1
- 403 Forbidden error when using NFS on MacOS Catalina HOT 1
- Invalid link HOT 1
- For NodeJS apps: nodemon doesn't work HOT 1
- PHP 5.6 is installed by default on the free version HOT 2
- the php version need be update to 7.4 HOT 1
- vagrant up error: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scotch-box.