digital-ocean
Unable to create or change a table without a primary key – Laravel DigitalOcean Managed Database
From March 2022, you can now configure your MYSQL and other database by making a request to digital ocean APIs. Here’s the reference: https://docs.digitalocean.com/products/databases/mysql/#4-march-2022 STEPS TO FIX THE ISSUE: Step – 1: Create AUTH token to access digital ocean APIs. https://cloud.digitalocean.com/account/api/tokens STEP – 2: Get the database cluster id by hitting the GET request to … Read more
How do I set up global load balancing using Digital Ocean DNS and Nginx?
The Goal: Offer highly-available service to my users by routing all connections to the closest ‘cluster’ of servers in SFO, NYC, LON, and eventually Singapore. The global-balancing layer then routes the request to theleast connected server… If I’m reading your configuration correctly, you’re actually proxying from your global balancers to the balancers at each region. … Read more
RewriteRule Error: Bad flag delimiters
Turns out it was because of the space before N in the flag declaration [L,R=301, NC]. I changed it to [L,R=301,NC] and now it works a treat.
Ubuntu Apache: “Module php7 does not exist” [closed]
Finally, thanks to the comment of Ed de Almeida, I found the solution. I had to install an additional package: $ sudo apt-get install libapache2-mod-php7.0 Now I could run sudo a2enmod php7.0.
Tomcat7 starts too late on Ubuntu 14.04 x64 [Digitalocean]
Replacing securerandom.source=file:/dev/urandom with securerandom.source=file:/dev/./urandom in $JAVA_PATH/jre/lib/security/java.security has solved my problem. Even when file:/dev/urandom is specified, JRE will still use /dev/random for SHA1PRNG (see bug JDK-4705093): In SHA1PRNG, there is a SeedGenerator which does various things depending on the configuration. If java.security.egd or securerandom.source point to “file:/dev/random” or “file:/dev/urandom”, we will use NativeSeedGenerator, which calls super() … Read more
ZSH Agnoster Theme showing machine name
It is the feature according to this; when we are sshing, the hostname will be shown. Overriding the function prompt_context or build_prompt on Agnoster theme will rescue. Putting below snippets at the very end of the ~/.zshrc for example. # redefine prompt_context for hiding user@hostname prompt_context () { }
What is the proper command to restart a Dokku app from SSH?
dokku ps:restart <app> works for me logged in with dokku system user. Use dokku apps:list to list your apps.
‘EntryPoints’ object has no attribute ‘get’ – Digital ocean
Because importlib-metadata releases v5.0.0 yesterday which it remove deprecated endpoint. You can set importlib-metadata<5.0 in ur setup.py so it does not install latest version. Or if you use requirements.txt, you can as well set importlib-metadata below version 5.0 e.g importlib-metadata==4.13.0 For more info: https://importlib-metadata.readthedocs.io/en/latest/history.html