digital-ocean

Unable to create or change a table without a primary key - Laravel DigitalOcean Managed Database

て烟熏妆下的殇ゞ 提交于 2021-02-20 14:56:16
问题 I've just deployed my app to DigitalOcean using (Managed Database) and I'm getting the following error when calling php artisan migrate SQLSTATE[HY000]: General error: 3750 Unable to create or change a table without a primary key, when the system variable 'sql_require_primary_key' is set. Add a primary key to the table or unset this variable to avoid this message. Note that tables without a primary key can cause performance problems in row-based replication, so please consult your DBA before

Strapi is not loading the Collections from existing MongoDB hosted on Digital Ocean

让人想犯罪 __ 提交于 2021-02-19 01:24:39
问题 I am creating a New Application using Strapi and I have tried to connect it with my MongoDB which is hosted on Digital Ocean but unfortunately Strapi is not able to fetch the collections from existing MongoDB . Here, I am mentioning the complete steps that I have followed to achieve the connection of Strapi with the existing MongoDB: I have followed this guide step by step to create a Strapi Application: Quick_Start_Strapi Although, I need to connect to my existing MongoDB which is hosted on

Enabling WebP Support in GD Library on Ubuntu 18.04 running on LiteSpeed

烂漫一生 提交于 2021-02-11 15:46:41
问题 We have GD Library installed on DigitalOcean's Litespeed server, however, it does not support WebP. I'd like to enable WebP support. 回答1: This is on LiteSpeed' Engineer's to-do list but there is no ETA. I know it doesn't sound like an answer, but you can either just wait for it or build it yourself. 来源: https://stackoverflow.com/questions/61574434/enabling-webp-support-in-gd-library-on-ubuntu-18-04-running-on-litespeed

Enabling WebP Support in GD Library on Ubuntu 18.04 running on LiteSpeed

♀尐吖头ヾ 提交于 2021-02-11 15:46:32
问题 We have GD Library installed on DigitalOcean's Litespeed server, however, it does not support WebP. I'd like to enable WebP support. 回答1: This is on LiteSpeed' Engineer's to-do list but there is no ETA. I know it doesn't sound like an answer, but you can either just wait for it or build it yourself. 来源: https://stackoverflow.com/questions/61574434/enabling-webp-support-in-gd-library-on-ubuntu-18-04-running-on-litespeed

Dokku Compilation Error - django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2'

喜欢而已 提交于 2021-02-11 14:54:17
问题 I've been attempting to setup my built-up Django Instance as a Database Server. Had chosen DigitalOcean as my platform and had read that Dokku is a useful PaaS system that will enable better scalability for this API I'm trying to deploy. I have been at this problem for the last 3-4 days straight and really had gone through every potential means of solution I could have found online. Being more of a front-end developer, I'm pretty bad at this backend installation matter. At first I thought

implement https on nginx config file

泄露秘密 提交于 2021-02-08 10:02:47
问题 I have a single page application written with vuejs and i want to deploy the application using digitalocean, nginx and docker my question is, what do i need to add to the config file/docker file to make that the app will use https and not http? (i'm going to use self signed certificates) yes, i searched the question already, but nothing seems to work with that template. also, the backend for this app is nodejs with express that will be on different container on the same digital ocean server

Connect NodeJS to MongoDB Droplet

青春壹個敷衍的年華 提交于 2021-02-04 08:27:46
问题 So I've decided to set up my project with two droplets, a MongoDB image droplet and a NodeJS image droplet. I did so to make it easier to scale both droplets in the future, and other applications may be connecting to the DB in the future, both on Ubuntu 18.04. I'm getting the error of: Could not connect to the database: { MongooseServerSelectionError: connection timed out at new MongooseServerSelectionError (/root/eternal-peace-code/node_modules/mongoose/lib/error/serverSelection.js:22:11) at

PATH_INFO in $_SERVER always empty - NGINX + FPM 7.3 + Ubuntu 18.04

自古美人都是妖i 提交于 2021-01-29 11:23:23
问题 I am deploying my web application at DigitalOcean. My environment is: Ubuntu 18.04, PHP + FPM 7.3, NGINX. My routing system is based on the $_SERVER PATH_INFO, but it only returns empty, so I can't access my routes. I already researched the solution and none of StackOverflow worked for me. My default file in /etc/nginx/sites-enabled is: server { listen 80; listen [::]:80; root /usr/share/nginx/my-site/public; index index.php index.html index.htm; server_name localhost; location / { try_files

Axios POST isn't running inside NodeJS/Express Route

十年热恋 提交于 2021-01-29 08:55:45
问题 I'm calling my express route (domain.com/api) from another domain (domain1.com). So I've set up Express to accept POST requests to the route /api and signing a JWT before exchanging the JWT via Axios for a Bearer access token. I cannot seem to get the Axios post request to fire. Is is possible it's a firewall thing? How can I see where the error lives? Forgive me, I'm still new to Node/Express. Here is my pertinent code: const express = require('express'); const cors = require("cors"); const

Error: listen EADDRINUSE: address already in use :::3000 - Digitalocean

▼魔方 西西 提交于 2021-01-29 07:32:44
问题 I recently followed a video chat tutorial and wanted to host it on Digitalocean to test some webRTC things. I got it working and even got it hosted on Heroku. However, when I go to host it on an unused droplet (running off of the initial $100 free Digitalocean credit) and SSH into my droplet & run npm start (yes, although its not in the tutorials github code, npm start is in the package.json ), I get an error. USER***@nodejs-s-1vcpu-1gb-sfo2-01:~/DIRNAME$ sudo npm start > livestream-server@0