Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9152087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:57:29+00:00 2026-06-17T11:57:29+00:00

I looking for setup a multi-environment project using Laravel3 but I dont understand the

  • 0

I looking for setup a multi-environment project using Laravel3 but I dont understand the command to set the environment.

I see here: http://laravel.com/docs/artisan/commands
The command is:

php artisan foo --env=local

I already used artisan and bob with success, what I can’t undertand the foo, I try to change to my project name but always the same output: “Sorry, I can’t find that task.”

If I try: php artisan –env=local

That will return: “You forgot to provide the task name.”

Anybody can help? Thanks for your time.

[edit] With the answers now I can understand better and improve my question:

I have a project with those folders created: http://d.pr/i/5nZS
With that in mind, I need to set my local env as development and production as production. So, I can do that with any variation of the command “php artisan –env=local” or I need to add on my public/.htaccess “SetEnv LARAVEL_ENV development”?

Thanks again.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:57:30+00:00Added an answer on June 17, 2026 at 11:57 am

    Here, how I solved my question:

    First I didn’t need the command php artisan migrate --env=local, I just need set on my virtualhost: SetEnv LARAVEL_ENV development.

    Second, as William Cahill-Manley say, I need to work on application/paths.php, the $environments. I’ve used it before but the wrong way. In my case, I solve with that:

    $environments = array(
        'development' => array('http://localhost/project*', '*project/*'),
        'production' => array('http://project.com', 'http://*.project.com')
    );
    

    My problem was because my code before was like that:

    $environments = array(
        'development' => array('http://localhost/project*', '*project*'),
        'production' => array('http://project.com', 'http://*.project.com')
    );
    

    And because the second element of development array, in the production server always will be in development.
    Thats because the url on development be http://project/ and on production be http://project.com/ or http://user.project.com/

    See, the project will force in all envonriments be development by the asterisk/wildcard.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for a Sybase PowerBuilder 8.0 setup. I found http://www.sybase.com/detail?id=1013232 , but
We currently have a single installation multi-site setup, hosted in Europe, and are looking
I am looking to setup a multi-layer parallax scrolling background for a game application
I'm looking to setup my website (C#/SQL 2008) to allow two factor authentication using
I'm using both Hibernate annotations and Sybase. I'm looking to setup a version column
(Re-written for clarity) I have a multi-project solution that I am looking to convert
I'm looking to setup wildcard virtual hosts in Ubuntu. I've set it up on
I am looking to setup some routes in Symfony2, but I am struggling to
I am looking to setup Amazon EC/2 nodes on rails with Riak. I am
I'm looking to setup a custom route which supplies implicit parameter names to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.