laravel-forge

Laravel Forge Add Wildcard Subdomain to Existing

让人想犯罪 __ 提交于 2021-02-07 10:24:46
问题 How do I add Wildcard Subdomains to a site I already created? When you first create one I know you can check a box but how do you do so after the fact? Do I have to edit the NGINX Config file? I tired placing this in the server{} section: server_name ~^(.*)\.mydomain\.com$ ; but it didnt work. I have always used .htaccess so I am not too familiar with NGINX NGINX Config File I tried server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name mydomain.com; server_name ~^(.*)\

Running an artisan command forever with laravel forge?

大憨熊 提交于 2020-01-04 18:11:47
问题 Can someone possibly advise how I can keep my custom artisan command running forever with the daemon? I saw the many tutorials with queues, however it doesn't exactly fit. I am trying to accomplish "subscribe" with pubnub's php library and this seems like the best way, unless I missed something? Thanks in advance! 回答1: If you run the artisan command from the command line - it can already run indefinitely/forever. You dont need to do anything. I have an application that has been running the

Running an artisan command forever with laravel forge?

ⅰ亾dé卋堺 提交于 2020-01-04 18:09:05
问题 Can someone possibly advise how I can keep my custom artisan command running forever with the daemon? I saw the many tutorials with queues, however it doesn't exactly fit. I am trying to accomplish "subscribe" with pubnub's php library and this seems like the best way, unless I missed something? Thanks in advance! 回答1: If you run the artisan command from the command line - it can already run indefinitely/forever. You dont need to do anything. I have an application that has been running the

Laravel & Laravel Forge returns “MaxAttemptsExceededException:” even when tries are set at 1

怎甘沉沦 提交于 2019-12-24 18:32:05
问题 My error log is getting filled with this useless text, I have set my job to only try once and the time out to 0 because the jobs can be really long and it depends on the user. So the job has tries set at 1 timeout at 0, on laravel forge I have set my worker to have max tries at 1 and timeout 0, and still it gives me this error in the logs: Illuminate\Queue\MaxAttemptsExceededException: A queued job has been attempted too many times. The job may have previously timed out. in /home/forge

Laravel Forge Quick Deploy throwing 500 error

倾然丶 夕夏残阳落幕 提交于 2019-12-24 11:50:42
问题 I've set up all configurations at Laravel Forge, and created new site connected to Bitbucket Git repository. When I click "Enable Quick Deploy" the button an error is thrown, whereas "Deploy Now" works well. https://forge.laravel.com/servers/{myserver}/sites/{mysite}/deploy 500 (Internal Server Error) I found out this link which has similar issue to me : https://laracasts.com/forum/?p=1676-laravel-forge-deploy-and-quick-deploy-not-working/0 Only one different thing is that mine happens to the

Laravel Forge + DigitalOcean - Adding a SFTP user with restricted access only to a directory

▼魔方 西西 提交于 2019-12-23 15:23:18
问题 I am using Laravel Forge in a DigitalOcean droplet. I need to grant SFTP access to a specific directory on the server to one of my clients. He needs read/write access to only that directory, and I am having problems with the setup. I have followed the steps in https://bensmann.no/restrict-sftp-users-to-home-folder/, but I am stuck because Forge does not permit password authentication, only through public/private SSH keys... Has someone done something similar? What would be the best approach

JOB_TOO_BIG Pheanstalk - what can be done?

帅比萌擦擦* 提交于 2019-12-22 05:13:35
问题 On Laravel 4.2 & Laravel Forge I Made a mistake and accidentally pushed some code on to the production sever, but there was a bug and it pushed a job to the queue without deleting it once done. Now I can't push anything in the queue anymore, I get: Pheanstalk_Exception JOB_TOO_BIG: job data exceeds server-enforced limit What can I do? 回答1: This is because you're trying to store too much data in the queue itself. Try to cut down the data you're pushing to the queue. For example if your queue

SSL laravel forge in default site

∥☆過路亽.° 提交于 2019-12-12 02:01:32
问题 I have read this tutorial to set up SSL for my laravel site. I did not read everything (oops), and did not delete the "default" site. I have generated CSR from default site (but with example.com for domain). Now I have my certificate and i have installed it through laravel forge, but it does not work: cannot connect to https://example.com (browser / curl) http://example.com does not redirect to https Nothing in /var/log/nginx/default-error.log I restarted nginx Here is my /etc/nginx/sites

Laravel Forge Deployment environment variable issue

…衆ロ難τιáo~ 提交于 2019-12-11 17:27:12
问题 My App will not deploy because it is missing required environment variables. When I set these from within Forge, they appear. As soon as I hit deploy they all disappear, then my deploy fails. I am using Symfony2 with Digital Ocean - but shouldn't make a difference, the issue is all environment variables get deleted prior to a deploy. That can't be right? Here is the error message from Symfony, but it is due to the environment variable not being set (in forge I can see it get deleted right

How can I solve “We were unable to obtain a LetsEncrypt SSL certificate on your server” on the forge laravel?

怎甘沉沦 提交于 2019-12-11 16:58:22
问题 My server using forge laravel(https://forge.laravel.com) When I click obtain certificate button to add new certicate like this : It does not work. There exist error like this : We were unable to obtain a LetsEncrypt SSL certificate on your server The full error like this : How can I solve this error? 来源: https://stackoverflow.com/questions/48700055/how-can-i-solve-we-were-unable-to-obtain-a-letsencrypt-ssl-certificate-on-your