itsjeffro / deploy Goto Github PK
View Code? Open in Web Editor NEWLaravel package for zero-downtime deployments
License: MIT License
Laravel package for zero-downtime deployments
License: MIT License
Hey @itsjeffro
One other issue i'm running into, i'm unable to connect my bitbucket account to my integrations.
O-Auth is configured with all the permissions. When i get to the grant page, i click allow but after it redirect me back to my call back URL, i still don't see the connection.
Can you help?
Thanks,
Hi @itsjeffro
I'm getting this error everytime I hit deploy:
ErrorException include(/home/forge/"sitename">/releases/20200620003703/vendor/composer/../laravel/framework/src/Illuminate/Contracts/Database/ModelIdentifier.php): failed to open stream: No such file or directory
I haven't had a successful run again.
Can you help?
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install itsjeffro/deploy v1.1.4
- Conclusion: don't install itsjeffro/deploy 1.x-dev
- Conclusion: remove guzzlehttp/guzzle 6.5.5
To avoid conflicts with other table names, deploy related table names should be prefixed with "deploy_".
Hi @itsjeffro
How can we add the "Auth" middleware or any middleware to the route for /Deploy?
Thanks,
Choosing a private github repo from the Add Project modal doesnt seem to work.
Hi @itsjeffro!!!
So 1 week into the deployments, and everything is running smoothly!! Can't tell you how much I appreciate this. ๐
Regarding the processes of adding a new server for each new project, it would be great to have a page full section that has all my servers listed then when building a new project, i could either select from a dropdown menu or enter new server details.
Small improvements like that will make the project creation flow much smoother.
Hi Jeffro.
I've been scratching my head trying to understand how I can access just the landing page of the projects view.
I've followed all the instructions listed and published all the assets. I'm using a fresh install of laravel 5.5 with the default routing. I don't see any additional info on how to get the main page to pull up.
did I miss something? I'd love to get this working. Thanks.
Similar to #54
Hey @itsjeffro
Got a another for you! ๐ I really wanna get this working.
For the added server, i took the public key given and added it to my .ssh/authorized_key. The connection status still shows as "connecting" and after refreshing the page, "failed".
What should the Connect As option be? I set it as "forge" because its what I have on envoyer.
Thanks.
Hey @itsjeffro
So this is a weird one, this is only happening for 1 of my projects. The rest are fine. Here are the logs:
Symfony\Component\Debug\Exception\FatalThrowableError Too few arguments to function Illuminate\Database\QueryException::__construct(), 0 passed in /home/forge/{{websitepath}}/releases/20200708034208/vendor/itsjeffro/deploy/src/Listeners/ProcessorErrorListener.php on line 41 and exactly 3 expected
vendor/laravel/framework/src/Illuminate/Database/QueryException.php:32 Illuminate\Database\QueryException::__construct
vendor/itsjeffro/deploy/src/Listeners/ProcessorErrorListener.php:41 Deploy\Listeners\ProcessorErrorListener::handle
[internal] call_user_func_array
vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:366 Illuminate\Events\Dispatcher::Illuminate\Events{closure}
vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:196 Illuminate\Events\Dispatcher::dispatch
vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:482 event
vendor/itsjeffro/deploy/src/Processors/DeploymentProcessor.php:100 Deploy\Processors\DeploymentProcessor::fire
vendor/itsjeffro/deploy/src/Jobs/DeployJob.php:53 Deploy\Jobs\DeployJob::handle
[internal] call_user_func_array
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32 Illuminate\Container\BoundMethod::Illuminate\Container{closure}
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:90 Illuminate\Container\BoundMethod::callBoundMethod
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:34 Illuminate\Container\BoundMethod::call
vendor/laravel/framework/src/Illuminate/Container/Container.php:576 Illuminate\Container\Container::call
vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:94 Illuminate\Bus\Dispatcher::Illuminate\Bus{closure}
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 Illuminate\Pipeline\Pipeline::Illuminate\Pipeline{closure}
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 Illuminate\Pipeline\Pipeline::then
vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:98 Illuminate\Bus\Dispatcher::dispatchNow
vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php:49 Illuminate\Queue\CallQueuedHandler::call
vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php:88 Illuminate\Queue\Jobs\Job::fire
vendor/laravel/framework/src/Illuminate/Queue/Worker.php:337 Illuminate\Queue\Worker::process
vendor/laravel/framework/src/Illuminate/Queue/Worker.php:283 Illuminate\Queue\Worker::runJob
vendor/laravel/framework/src/Illuminate/Queue/Worker.php:118 Illuminate\Queue\Worker::daemon
vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php:102 Illuminate\Queue\Console\WorkCommand::runWorker
vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php:86 Illuminate\Queue\Console\WorkCommand::handle
[internal] call_user_func_array
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32 Illuminate\Container\BoundMethod::Illuminate\Container{closure}
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:90 Illuminate\Container\BoundMethod::callBoundMethod
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:34 Illuminate\Container\BoundMethod::call
vendor/laravel/framework/src/Illuminate/Container/Container.php:576 Illuminate\Container\Container::call
vendor/laravel/framework/src/Illuminate/Console/Command.php:183 Illuminate\Console\Command::execute
vendor/symfony/console/Command/Command.php:255 Symfony\Component\Console\Command\Command::run
vendor/laravel/framework/src/Illuminate/Console/Command.php:170 Illuminate\Console\Command::run
vendor/symfony/console/Application.php:1000 Symfony\Component\Console\Application::doRunCommand
vendor/symfony/console/Application.php:271 Symfony\Component\Console\Application::doRun
vendor/symfony/console/Application.php:147 Symfony\Component\Console\Application::run
vendor/laravel/framework/src/Illuminate/Console/Application.php:90 Illuminate\Console\Application::run
vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:133 Illuminate\Foundation\Console\Kernel::handle
artisan:37 [main]
Hi @itsjeffro
so i spent the last week trying to get my forge user to be able to reload FPM and I almost broke my server. Fortunately, I finally figured it out. :)
With every deployment, there needs to be a step to reload FPM since a new sym link is created for the current folder.
FPM by default can only be reloaded using the root user. To enable other users, especially the user selected when adding a new server, these permissions need to be granted in the /etc/sudoers file so that at the end of every deployment, this step can be added:
Name: Reload FPM
Script:
cd {{ release }}
sudo service php7.4-fpm restart
Using "forge" as my connecting user, i am now able to reload FPM without requiring the root user access.
Hey @itsjeffro
We're on our way to create the most awesome zero downtime deployment tool out there.
But first :)
Illuminate\Broadcasting\BroadcastException
vendor/laravel/framework/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php:119 Illuminate\Broadcasting\Broadcasters\PusherBroadcaster::broadcast
vendor/laravel/framework/src/Illuminate/Broadcasting/BroadcastEvent.php:48 Illuminate\Broadcasting\BroadcastEvent::handle
[internal] call_user_func_array
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32 Illuminate\Container\BoundMethod::Illuminate\Container{closure}
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:90 Illuminate\Container\BoundMethod::callBoundMethod
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:34 Illuminate\Container\BoundMethod::call
vendor/laravel/framework/src/Illuminate/Container/Container.php:576 Illuminate\Container\Container::call
vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:94 Illuminate\Bus\Dispatcher::Illuminate\Bus{closure}
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 Illuminate\Pipeline\Pipeline::Illuminate\Pipeline{closure}
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 Illuminate\Pipeline\Pipeline::then
vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:98 Illuminate\Bus\Dispatcher::dispatchNow
vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php:49 Illuminate\Queue\CallQueuedHandler::call
vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php:88 Illuminate\Queue\Jobs\Job::fire
vendor/laravel/framework/src/Illuminate/Queue/SyncQueue.php:42 Illuminate\Queue\SyncQueue::push
vendor/laravel/framework/src/Illuminate/Queue/Queue.php:44 Illuminate\Queue\Queue::pushOn
vendor/laravel/framework/src/Illuminate/Broadcasting/BroadcastManager.php:128 Illuminate\Broadcasting\BroadcastManager::queue
vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:267 Illuminate\Events\Dispatcher::broadcastEvent
vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:190 Illuminate\Events\Dispatcher::dispatch
vendor/itsjeffro/deploy/src/Processors/ServerConnectionProcessor.php:74 Deploy\Processors\ServerConnectionProcessor::fire
vendor/itsjeffro/deploy/src/Jobs/TestConnectionJob.php:41 Deploy\Jobs\TestConnectionJob::handle
[internal] call_user_func_array
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32 Illuminate\Container\BoundMethod::Illuminate\Container{closure}
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:90 Illuminate\Container\BoundMethod::callBoundMethod
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:34 Illuminate\Container\BoundMethod::call
vendor/laravel/framework/src/Illuminate/Container/Container.php:576 Illuminate\Container\Container::call
vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:94 Illuminate\Bus\Dispatcher::Illuminate\Bus{closure}
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 Illuminate\Pipeline\Pipeline::Illuminate\Pipeline{closure}
vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 Illuminate\Pipeline\Pipeline::then
vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:98 Illuminate\Bus\Dispatcher::dispatchNow
vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php:49 Illuminate\Queue\CallQueuedHandler::call
vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php:88 Illuminate\Queue\Jobs\Job::fire
vendor/laravel/framework/src/Illuminate/Queue/Worker.php:337 Illuminate\Queue\Worker::process
vendor/laravel/framework/src/Illuminate/Queue/Worker.php:283 Illuminate\Queue\Worker::runJob
vendor/laravel/framework/src/Illuminate/Queue/Worker.php:118 Illuminate\Queue\Worker::daemon
vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php:102 Illuminate\Queue\Console\WorkCommand::runWorker
vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php:86 Illuminate\Queue\Console\WorkCommand::handle
[internal] call_user_func_array
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32 Illuminate\Container\BoundMethod::Illuminate\Container{closure}
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:90 Illuminate\Container\BoundMethod::callBoundMethod
vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:34 Illuminate\Container\BoundMethod::call
vendor/laravel/framework/src/Illuminate/Container/Container.php:576 Illuminate\Container\Container::call
vendor/laravel/framework/src/Illuminate/Console/Command.php:183 Illuminate\Console\Command::execute
vendor/symfony/console/Command/Command.php:255 Symfony\Component\Console\Command\Command::run
vendor/laravel/framework/src/Illuminate/Console/Command.php:170 Illuminate\Console\Command::run
vendor/symfony/console/Application.php:1000 Symfony\Component\Console\Application::doRunCommand
vendor/symfony/console/Application.php:271 Symfony\Component\Console\Application::doRun
vendor/symfony/console/Application.php:147 Symfony\Component\Console\Application::run
vendor/laravel/framework/src/Illuminate/Console/Application.php:90 Illuminate\Console\Application::run
vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:133 Illuminate\Foundation\Console\Kernel::handle
artisan:37 [main]
Hi Jeffrey!
Something's up with your documentation server. Getting a 404 error:
Allow users to rearrange hooks through dragging
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.