Re: Ci automated deploy of seaside to Digital Ocean
Sven Van Caekenberghe <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <[email protected]> |
Have you also looked at systemd ? It is the new Linux thing for a while now. I use it successfully (https://github.com/svenvc/pharo-server-tools). It takes some getting used to, but it does work. > On 11 May 2018, at 14:23, Tim Mackinnon <[email protected]> wrote: > > Hey thanks for the prompts - I figured out my starting problem I was using —no-default-preferences as a VM parameter at its not, its an image parameter so it comes AFTER the image name on the command line… subtle but its the kind of thing that drives you crazy. > > I will look at what it takes to add users to my DO account and run that way (its better as you suggest) > > Tim > >> On 11 May 2018, at 13:02, Esteban A. Maringolo <[email protected]> wrote: >> >> >> >> On 11/05/2018 08:45, Tim Mackinnon wrote: >>> 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? >> >> I normally don't, but mostly because the VPS I use are not "disposable", >> so I lock it down as if it were a physical server. >> >> It is not "cloud" as in that my the servers have a name, not a number :) >> Using the analogy [1], my VPSs are pets, not cattle. >> >> >>> 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?) >> >> supervisord will run as root, and in the process config you can specify >> the user for it (for some reason I omitted that last line, sorry) >> >> In my previous example, you should add this to the config: >> user=trentosur ; setuid to this UNIX account to run the program >> >> I avoid running my software as root, in particular if the server where >> it is hosted contains information that shouldn't be read by anybody but me. >> >> >> >> [1] >> https://cloudscaling.com/blog/cloud-computing/the-history-of-pets-vs-cattle/ >> , there are also "insects" now with microservices/lambda. >> >> >> >> -- >> Esteban A. Maringolo >> _______________________________________________ >> seaside mailing list >> [email protected] >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > _______________________________________________ > seaside mailing list > [email protected] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside