Git Product home page Git Product logo

Comments (20)

whatnickcodes avatar whatnickcodes commented on July 29, 2024

I actually plan on making some demo videos for this soon. I'll keep this open until I do (hopefully soon).

from scotch-box.

mariuskubilius avatar mariuskubilius commented on July 29, 2024

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.

JamieBradders avatar JamieBradders commented on July 29, 2024

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.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

Reopening. You can follow the instructions from above

from scotch-box.

bill-barron avatar bill-barron commented on July 29, 2024

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.

chrisvogt avatar chrisvogt commented on July 29, 2024

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.

mikethrussell avatar mikethrussell commented on July 29, 2024

@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.

chrisvogt avatar chrisvogt commented on July 29, 2024

@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.

FDiskas avatar FDiskas commented on July 29, 2024

For laravel use this https://github.com/CodersAKL/laravel-vagrant

from scotch-box.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

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.

FDiskas avatar FDiskas commented on July 29, 2024

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.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

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.

FDiskas avatar FDiskas commented on July 29, 2024

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.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

Hey guys

Run: vagrant box update

Composer and Laravel are now in the PATH

from scotch-box.

rach7110 avatar rach7110 commented on July 29, 2024

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.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

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.

rach7110 avatar rach7110 commented on July 29, 2024

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.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

So you're good?

from scotch-box.

markeilander avatar markeilander commented on July 29, 2024

Composer works, laravel doesn't.

from scotch-box.

weber-stephen avatar weber-stephen commented on July 29, 2024

Followed this tutorial and it mostly worked, but there is an error.
http://dobsondev.com/scotch-box-laravel/

from scotch-box.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.