Vapor: RDS Proxies Now Support MySQL 8.0
Starting today, you may use Vapor's managed RDS Proxies with MySQL 8.0 — the most recent MySQL version.
Nuno Maduro
Starting today, you may use Vapor's managed RDS Proxies with MySQL 8.0 — the most recent MySQL version.
Nuno Maduro
Starting today, you may use PHP 8.1 Release Candidates in your Vapor environments. To get started, simply specify "php-8.1:al2" as your preferred runtime in your "vapor.yml" configuration file.
Nuno Maduro
Starting today, you may install PHP 8.1 Release Candidates by choosing "PHP 8.1 RC" while creating a new server. Or, you may install the release candidate on an existing server via the PHP tab on a server's management dashboard.
Nuno Maduro
Today we're pleased to announce that Octane support is now available in Laravel Vapor. The speed improvements are just mind-blowing, so put on your seat belt, and let's get into the details.
Nuno Maduro
On Thursday, September 30th there will be a small change in how older browsers and devices will treat Let's Encrypt's certificates. While most sites will be unaffected, it will likely impact you if you're providing an API or support IoT devices.
Claudio Dekker
Starting today, it's possible for project owners to transfer projects to another Envoyer account. Collaborators will not be able to transfer a project away from its owner. Project transfers may be initiated from the project's settings page: Projects may only be transferred to existing Envoyer accounts. Recipients will need an active subscription **and** be connected to the same source control provider as the project to be transferred. If you don’t have a [**Envoyer**](https://envoyer.io) account, now is a great time to sign up! Envoyer allows you to deploy with zero-downtime, so your sites remain available all of the time.
James Brooks
Today we're proud to introduce you to our new command-line tool: Forge CLI. In short, this new open-source tool provides a number of helpful commands that can assist you in managing your Forge servers, sites, and resources, from the command-line.
Nuno Maduro
On July 7th, we've made infrastructure upgrades on Laravel Forge to increase its stability and capacity. Due to the upgrades, we've updated the list of IP Addresses that may SSH into your server.
Nuno Maduro
Next.js is a React framework developed by [Vercel](https://vercel.com). It includes functionality such as server-side rendering and static site generation. Today we’ll explain how you can deploy your Next.js application with [Laravel Forge](https://forge.laravel.com). If you’re following along with your own Forge server, ensure that the server is a “App” or “Web” server so that Nginx is installed. In this post, we’ll explain how to deploy your site using the Next.js server-side rendering feature. ## Creating An Nginx Template To use server-side rendering, we first need to create a new [Nginx Template](https://forge.laravel.com/docs/1.0/servers/nginx-templates.html) in Forge. We’re using an Nginx Template here so that we don’t need to modify our site’s Nginx configuration later. We’ll create a new template with a name of “Next.js App” and then update the contents of our template: ```nginx # FORGE CONFIG (DO NOT REMOVE!) include forge-conf/{{ SITE }}/before/*; server { listen {{ PORT }}; listen {{ PORT_V6 }}; server_name {{ DOMAINS }}; server_tokens off; root {{ PATH }}; # FORGE SSL (DO NOT REMOVE!) # ssl_certificate; # ssl_certificate_key; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; add_header X-Content-Type-Options "nosniff"; index index.html index.htm; charset utf-8; # FORGE CONFIG (DO NOT REMOVE!) include forge-conf/{{ SITE }}/server/*; location / { proxy_pass http://127.0.0.1:3000; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } access_log off; error_log /var/log/nginx/{{ SITE }}-error.log error; location ~ /\.(?!well-known).* { deny all; } } # FORGE CONFIG (DO NOT REMOVE!) include forge-conf/{{ SITE }}/after/*; ``` You may notice that the `location /` block is using `proxy_pass`. Server-side rendering in Next works similar to PHP, the server keeps a process running that generates the content and serves it to the client. With Next.js, we’re using Node, so we’ll pass our requests to the Next.js server via port `3000`. You can change this based on your project requirements. ## Creating The Site With the Nginx Template created we can now create our site, making sure that we select the “Next.js App” Nginx Template option:  Once Forge has created the site, we can install our repository from our chosen Git provider. ## Deployment Script The next step is to update the site’s deployment script: ```sh cd /home/forge/next-app-static.curved-feather.test git pull origin $FORGE_SITE_BRANCH npm install ``` We can now deploy our site with the updated script to have our NPM dependencies installed. If we browse to our site now, Nginx will give us a 502 error. This is because we’ve yet to start the Next.js server. To do, this we’ll create a new Daemon on the server. For the daemon, we only need to provide the directory of our site and the command; `npm run start`.  Once the Daemon is configured and becomes active, we can visit our site and see that it is now working.
James Brooks
Nuxt.js is a framework for generating static websites using Vue.js. Today we’re we're going to explore how to deploy your Nuxt.js application with [Laravel Forge](https://forge.laravel.com). If you're following along with your own Forge server, ensure that the server is a "App" or "Web" server so that Nginx is installed. ## Creating The Site First, we’ll need a site to deploy our application. In this example, we’ll use `nuxt-app.laravel.com` as our domain name but you should assign the site a domain name that you control, or name the site `default` to access the site by the server's IP address. As Nuxt.js doesn’t use PHP, we can also change the project type to “Static HTML”. Finally, we will also need to modify the “Web Directory” to `/dist`. The `dist` directory is where Nuxt.js generates the compiled version of our website that should be publicly available.  ## Installing The Repository With our site now configured, the next step is to install the repository that we want to deploy. We’ll select “Git Repository” and then enter our repository details. As our project is not using PHP, we can disable the “Install Composer Dependencies” option. ## Configuring The Deploy Script With static sites, you should avoid committing the generated site to your Git repository as it’ll very quickly grow in size. Instead, we’ll use our site’s deploy script to generate the site for us. To do this, we can update our deploy script to do two additional tasks: 1. Install NPM dependencies. This will include the `nuxt` command that we need. 2. Generate the site. We’ll update our deploy script like so: ```bash cd /home/forge/nuxt-app.laravel.com git pull origin $FORGE_SITE_BRANCH # Add These Two Lines... npm ci npm run generate ( flock -w 10 9 || exit 1 echo 'Restarting FPM...'; sudo -S service $FORGE_PHP_FPM reload ) 9>/tmp/fpmlock ``` ## Deploy! With these additional lines we can now deploy our application. Once the deployment has completed, we’ll now be able to access our site. And there we have it, we've deployed our Nuxt.js site with Forge.
James Brooks
Laravel is the most productive way to
build, deploy, and monitor software.