Code Monkey home page Code Monkey logo

forge-cli's Introduction

forge-cli's People

Contributors

bakerkretzmar avatar lasseeee avatar mpociot avatar mstaack avatar pkboom avatar repat avatar squatto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

forge-cli's Issues

Add php 8.0 support

Composer bails with:

beyondcode/forge-cli 1.1.0 requires php ^7.3 -> your php version (8.0.0) does not satisfy that requirement.

I'll make the PR if wanted.

Multiple sites deployments

We have over 100 sites to deploy for production. How do we set up the forge.xml to trigger the 100 sites on Forge? As it seems like you can only have 1 site per environment.

Feature Request: SSH Shortcut

This is an amazing tool, thank you.

It would be great to have forge ssh (or similar) so it grabs the IP and SSHes into the server and CDs into the site directory.

Thanks!

Timeout on deploy

Hi! This tool looks awesome!
I just installed it and are now testing on our stage server on Digital Ocean.

After installing the cli tool globally with composer I did the following:

▶ forge login
▶ forge init

Chose the correct server and site in forge init.
Then manually edit forge.yml to change env from "production" to "stage".

▶ forge info stage
+-----------+-------------------------+
| Key       | Value                   |
+-----------+-------------------------+
| Server    | example-stage           |
| IP        | x.x.x.x                 |
| Site      | example.com             |
| Directory | /public                 |
+-----------+-------------------------+
▶ forge deploy stage
Deploying site on stage...

In TimeoutException.php line 22:
                                                                                                                                        
  Argument 1 passed to Laravel\Forge\Exceptions\TimeoutException::__construct() must be of the type array, bool given, called in phar:  
  ///example.com/.composer/vendor/beyondcode/forge-cli/builds/forge/vendor/laravel/forge-sdk/src/MakesHttpRequests.php on line 138 

Things to note:

  1. I logged in with a user that have been added to an circle and for that reason only have access to this server.
  2. I manually edited the key in forge.yml from "production" to "stage" as I want this to be our stage server.
  3. The deploymentscript itself that we have created on forge (and was copied to deployment inside forge.yml on init) seems to work. The site did actually do a successful deployment, but without the deployment output in the CLI. We do not use quick-deploy. That beeing said we have modifed the standard deploymentscript pretty heavily to get a no downtime deployment with forge.

Not sure why I got the timeout exception. Any suggestions or logs I can check? For the record the timeout seemed to come pretty quickly (like after 10-15 seconds, not 30s or 60s).

System:

▶ php -v && forge --version && lsb_release -a
PHP 7.4.10 (cli) (built: Sep  9 2020 06:36:14) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.10, Copyright (c), by Zend Technologies
Forge 1.0.5
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.5 LTS
Release:	18.04
Codename:	bionic

Thanks!

Trying to get property 'accessToken' of non-object

Attempting to log in to Forge for the first time and getting an error.

$ forge login

 What is your Laravel Forge email?:
 > [email protected]

 What is your password?:
 > 

Logging in...

In LoginCommand.php line 82:
                                                      
  Trying to get property 'accessToken' of non-object

I suspect this may be due to having 2FA enabled (it's never prompted for) but haven't dug into the code.

Is it possible to set an API key directly without my password (and 2FA code)?

2FA login not working

On Windows

$ forge login

What is your Laravel Forge email?:
 > [email protected]

 What is your password?:
 >

Logging in...

 What is your 2FA token?:
 > 981182


In Crawler.php line 886:

  The current node list is empty.

PHP8 Version Trouble

Don't know why this check is failing. I've got Homebrew installed in /opt/homebrew on an M1 Mac, don't know if that's related.

qd@ariadne ~ % forge

Box Requirements Checker
========================

> Using PHP 8.0.3
> PHP is using the following php.ini file:
  /opt/homebrew/etc/php/8.0/php.ini

> Checking Box requirements:
  E.

                                                                                
 [ERROR] Your system is not ready to run the application.                       
                                                                                

Fix the following mandatory requirements:
=========================================

 * The application requires the version "^7.3" or greater.

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.