Giter Club home page Giter Club logo

Comments (12)

antonmedv avatar antonmedv commented on May 18, 2024 4

Here it is http://deployer.in/#with-pem-file 💎

from deployer.

antonmedv avatar antonmedv commented on May 18, 2024 1

This is deprecated, use identyFilr

from deployer.

antonmedv avatar antonmedv commented on May 18, 2024

You can use openssl_pkey_get_public to extract the pub/private keys.
I will try to implement this automatically in next release.

from deployer.

jimbojsb avatar jimbojsb commented on May 18, 2024

I was looking at that function before posting, it does not seem to work properly. The .pem file I have is not an x509, it is a private RSA key, like:

-----BEGIN RSA PRIVATE KEY-----
.........key..........
-----END RSA PRIVATE KEY-----

I've tried setting that to both the public and private key, to no avail. openssl_pkey_get_public returns false on that...

from deployer.

antonmedv avatar antonmedv commented on May 18, 2024

Ok, i'll try to deploy on AWS by myself.

from deployer.

odombrovskyi-dev avatar odombrovskyi-dev commented on May 18, 2024

So, do you have any decisions how to deploy on AWS?

from deployer.

jimbojsb avatar jimbojsb commented on May 18, 2024

Cool, I looked at the code you changed and it seems fairly obvious, but it doesn't seem to work for me.

[josh@orangeslice ~/projects/seaglass (master)]$ dep deploy
Preparing server for deploy.................................Password: 
✔
Updating code...............................................✔
Installing vendors..........................................✔
Creating symlink to release.................................✔
Cleaning up old releases....................................✔
Successfully deployed on banzai.aws

But nothing actually happens. There is no password, not sure why it's prompting for that. I hit enter at the password prompt and everything completes without error, but nothing is copied or checked out.

Redacted code from deploy file:

<?php
require 'recipe/composer.php';
set('use_ssh2', false);
set("repository", "[email protected]:org/repo.git");

server("web", "server.aws")
    ->user("ubuntu")
    ->path('/www/repo-deploytest')
    ->setPemFile("~/.ssh/aws.pem");

I'm happy to contribute as necessary to make this work.

from deployer.

antonmedv avatar antonmedv commented on May 18, 2024

Use 'pemFile' instead of 'setPemFile'.

30 июля 2014 г., в 18:21, Josh Butts [email protected] написал(а):

Cool, I looked at the code you changed and it seems fairly obvious, but it doesn't seem to work for me.

[josh@orangeslice ~/projects/seaglass (master)]$ dep deploy
Preparing server for deploy.................................Password:

Updating code...............................................✔
Installing vendors..........................................✔
Creating symlink to release.................................✔
Cleaning up old releases....................................✔
Successfully deployed on banzai.aws
But nothing actually happens. There is no password, not sure why it's prompting for that. I hit enter at the password prompt and everything completes without error, but nothing is copied or checked out.

Redacted code from deploy file:

user("ubuntu") ->path('/www/repo-deploytest') ->setPemFile("~/.ssh/aws.pem"); I'm happy to contribute as necessary to make this work. — Reply to this email directly or view it on GitHub.

from deployer.

jimbojsb avatar jimbojsb commented on May 18, 2024

Ah, a simple error on my part. Works flawlessly now. Thanks so much for adding this.

from deployer.

odombrovskyi-dev avatar odombrovskyi-dev commented on May 18, 2024

Good news. Thanks a lot

from deployer.

antonmedv avatar antonmedv commented on May 18, 2024

I'll make all set methods private to clearly api.

30 èþëÿ 2014 ã., â 21:22, Josh Butts [email protected] íàïèñàë(à):

Ah, a simple error on my part. Works flawlessly now. Thanks so much for adding this.


Reply to this email directly or view it on GitHub.

from deployer.

notflip avatar notflip commented on May 18, 2024

I'm getting the following error

 [Error] Call to undefined method Deployer\Host\Host::pemFile()

from deployer.

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.