Question about Deploying a Pharo Web Application in Production

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about Deploying a Pharo Web Application in Production

Georges
Hello all,

I have a problem, i try to do something simular as this:

./pharo myapp.image config \
    http://www.myRespository.com
    ConfigurationOfMyApp --install=stable

But I need to add my username and password in here.
I tried http://www.myRespistory.com?login=loginname&password=password
and http://loginname:password@... but both do not work.

Anybody any idea?

Thanks in advance,

Georges




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply | Threaded
Open this post in threaded view
|

Re: Question about Deploying a Pharo Web Application in Production

Sven Van Caekenberghe-2
Hi George,

$ ./pharo Pharo.image config --help

Command line handler for dealing with Metacello configurations from the command line

Usage: config [--help] <repository url> [<configuration>] [--install[=<version>]] [--group=<group>] [--username=<username>] [--password=<password>][--no-quit][--no-save]
        --help              show this help message
        --no-quit        keep the image running after configuration install
        --no-save       Don't save the image after configuration install
        <repository url>    A Monticello repository name
        <configuration>     A valid Metacello Configuration name
        <version>           A valid version for the given configuration
        <group>             A valid Metacello group name
        <username>          An optional username to access the configuration's repository
        <password>          An optional password to access the configuration's repository
       
Examples:
        # display this help message
        pharo Pharo.image config
       
        # list all configurations of a repository
        pharo Pharo.image config $MC_REPOS_URL
       
        # list all the available versions of a confgurtation
        pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
       
        # install the stable version
        pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo --install
       
        #install a specific version '1.5'
        pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo --install=1.5
       
        #install a specific version '1.5' and only a specific group 'Tests'
        pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo --install=1.5 --group=Tests

In other words: use the options --username and --password after config.

HTH,

Sven

> On 23 May 2020, at 13:06, Georges <[hidden email]> wrote:
>
> Hello all,
>
> I have a problem, i try to do something simular as this:
>
> ./pharo myapp.image config \
>    http://www.myRespository.com
>    ConfigurationOfMyApp --install=stable
>
> But I need to add my username and password in here.
> I tried http://www.myRespistory.com?login=loginname&password=password
> and http://loginname:password@... but both do not work.
>
> Anybody any idea?
>
> Thanks in advance,
>
> Georges
>
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>


Reply | Threaded
Open this post in threaded view
|

Re: Question about Deploying a Pharo Web Application in Production

Georges
Thanks Sven :)

It works !

Georges



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html