[Seaside] Ci automated deploy of seaside to Digital Ocean
Tim Mackinnon
tim at testit.works
Fri May 11 11:45:55 UTC 2018
Good to know you were pleased with it - I notice the Enterprise pharo chapter uses monit - perhaps I may have to try that in instead (but supervisord seemed much simpler). One small thought - I’ve been using my default root login account (the tutorials showing Digital Ocean all seem to do this) - I have a nagging feeling this isn’t so cool - but I’m not sure what the general practice is these days with cloud infrastructure?
Presumably supervisord needs to run as root? But my image doesn’t - still I would have expected that it would all run fine as root (if not a bit dangerously?)
Tim
> On 11 May 2018, at 12:31, Esteban A. Maringolo <emaringolo at gmail.com> wrote:
>
> I don't know if something changed, the setup I shared used Pharo 4 and
> supervisord v3.0b2.
>
> There might have been changes in the VM parameters. Although the image
> parameter is still there, and it is the most important.
>
> You should ask in the pharo-list.
>
>
> On 11/05/2018 07:41, Tim Mackinnon wrote:
>> Hi - I’ve been trying supervisord (which looks good) - however I can’t
>> get pharo to start - I just get "pharo: ERROR (spawn error)”, and
>> tailing the log in supervisorctl just shows me pharo spewing out the
>> command line help. Its like the image parameter isn’t being passed along
>> - very weird and frustrating.
>>
>> Tim
>>
>>> On 10 May 2018, at 19:47, Esteban A. Maringolo <emaringolo at gmail.com <mailto:emaringolo at gmail.com>
>>> <mailto:emaringolo at gmail.com <mailto:emaringolo at gmail.com>>> wrote:
>>>
>>>
>>>
>>> On 10/05/2018 15:30, Esteban A. Maringolo wrote:
>>>> How would you know when to kill the running vm+image? It might have
>>>> active sessions.
>>>>
>>>> If you don't care about that, what I used to manage a bunch of "worker
>>>> images" (process groups) with supervisord [1], so in that case you'd
>>>> stop all the related workers, copy the new image, and start the
>>>> workers again.
>>> My supervisord.conf entry for a pool of working images was:
>>>
>>> [program:psworker]
>>> command=/home/trentosur/perfectstore/pharo-vm/pharo --nodisplay
>>> /home/trentosur/perfectstore/ps.image worker.st <http://worker.st/> <http://worker.st/ <http://worker.st/>>
>>> 818%(process_num)1d
>>> process_name=%(program_name)s_%(process_num)02d ; process_name expr
>>> (default %(program_name)s)
>>> numprocs=2
>>> directory=/home/trentosur/perfectstore
>>> autostart=false
>>> autorestart=true
>>> user=trentosur
>>> stopasgroup=true
>>> killasgroup=true
>>>
>>>
>>> Part of the worker.st <http://worker.st/> <http://worker.st/ <http://worker.st/>> file handling the port
>>> number was:
>>>
>>> "Seaside server start"
>>> Smalltalk isHeadless ifTrue: [
>>> Smalltalk commandLine arguments
>>> ifEmpty: [
>>> Transcript show: 'No port parameter was specified.'; cr.
>>> Smalltalk quitPrimitive. ]
>>> ifNotEmpty: [:args |
>>> | port |
>>> port := args first asNumber asInteger.
>>> Transcript show: 'Starting worker image at port ', port asString; cr.
>>> ZnZincServerAdaptor startOn: port.
>>> ZnZincServerAdaptor default server debugMode: false.
>>> ]
>>> ]
>>> ifFalse: [
>>> | port |
>>> port := 8080.
>>> Transcript show: 'Starting worker image at port ', port asString; cr.
>>> ZnZincServerAdaptor startOn: port.
>>> ZnZincServerAdaptor default server debugMode: true.
>>> ].
>>>
>>>
>>> I hope it helps.
>>>
>>> Best regards,
>>>
>>>
>>>
>>> --
>>> Esteban A. Maringolo
>>> _______________________________________________
>>> seaside mailing list
>>> seaside at lists.squeakfoundation.org <mailto:seaside at lists.squeakfoundation.org>
>>> <mailto:seaside at lists.squeakfoundation.org <mailto:seaside at lists.squeakfoundation.org>>
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
>>
>>
>>
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org <mailto:seaside at lists.squeakfoundation.org>
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
>>
>
> --
> Esteban A. Maringolo
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org <mailto:seaside at lists.squeakfoundation.org>
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20180511/7bbbda40/attachment-0001.html>
More information about the seaside
mailing list