GithubHelp home page GithubHelp logo

mittwald / deployer-recipes Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 490 KB

Collection of deployer recipes for interacting with the mittwald cloud platform

License: MIT License

PHP 100.00%
deployer-recipe hacktoberfest php

deployer-recipes's People

Contributors

dependabot[bot] avatar martin-helmich avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deployer-recipes's Issues

Syntax for multiple deployment targets

In many projects, it is common to have a separate staging server and production server.
Until now, I have always solved this in Deployer:

host('live')
    ->hostname('pxxxxx.mittwaldserver.info')
    ->user('pxxxxx')
    ->set('branch', 'main')
   ...
host('staging')
    ->hostname('pyyyyy.mittwaldserver.info')
    ->user('pyyyyy')
    ->set('branch', 'develop')
   ...

This way you could easily choose, if you want to deploy to the live or staging server by /vendor/bin/dep deploy live

With your Mittwald deployer-recipes, however, it is not clear to me what the syntax must look like here in order to be able to distinguish between two servers!
How can I set different "names" for the servers in the mittwald_app('<app-id>')?

Error: could not get app

Hi!
I am currently testing your deployer-recipes.
I have installed a PHP app in the p-pey4f8 project and set a MITTWALD_API_TOKEN environment variable locally.

My deploy.php looks like this:

namespace Deployer;

require 'recipe/composer.php';
require __DIR__ . '/vendor/autoload.php';
require __DIR__ . '/vendor/mittwald/deployer-recipes/recipes/deploy.php';

set('repository', 'https://github.com/Starraider/devViteTypo3.git');

mittwald_app('p-pey4f8')
    ->set('public_path', '/public');

If I then execute "vendor/bin/dep deploy -vv", I get the error message:
"Exception in AppRecipe.php on line 86: could not get app"

The -vv output looks like this:

task deploy:info
[mittwald] info deploying HEAD
done on mittwald
done deploy:info 100ms
task mittwald:discover
[mittwald] Exception in AppRecipe.php on line 86:
[mittwald]
[mittwald] could not get app
[mittwald]
done mittwald:discover 714ms
ERROR: Task mittwald:discover failed!
task deploy:failed
done on mittwald
done deploy:failed 135ms

Any idea what could be causing this?

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.