Fetch will pull the env file from the selected server. If you have a multi-server infrastructure, then you can select individual servers to fetch their env, or just the server that’s running the app. There’s still improvements we have in mind to further reduce friction.
Also, the first time you fetch you’ll see the result like in your screenshot where it says “This env is empty, be sure to replace it.” When you create a laravel site, we’ll add placeholders until you launch your laravel app, which includes the placeholder .env file. From here, you can add the variables for your app and then synch with the appropriate server.
Great catch! We have real-time status updates configured on server and site creation; adding to the deployment process is high on the to-do list.
A future feature will be to perform health checks post deployment. Webapps can show successful if no errors we’re encountered during deployment; however, there may be custom deployment hooks, or other actions, that didn’t work as intended but also didn’t fail. Please feel free to provide more info around the web app and we can see if we can help troubleshoot the issue.
Thanks again for the feedback, it’s very appreciated!
Also, we made some updates to env to use default variables so that basic laravel apps will run (just work) after deployment -> we will include this in our next release. Thanks for good insights and helping us reduce friction!
i get why, because in step 2, composer install failed while deploy database… with default config.
because it failed, Activate New Deployment not run …
so link is not done with current directory
and fetch maybe fetch in current.
so it’s blocked.
i try other way.
manually add .env in realPath but not work. each deploy destroy .env.
It looks like you are still confused a bit with how fetch works. Fetch gets your env variables if it is already on the server. But the first time, you may not have any env variables to begin with.
So, the very first time, you need to add your env variables and then click Sync. You can click that blue switcher on top-right to switch between field editor and text editor.
Once you have synced your variables, they are available in future for fetching and editing. To summarize:
Add your env variables first
Sync the variables to your server
Deploy
Fetch your env variables and do more editing (like adding, removing, updating etc.)
Hi @spham - sorry for the confusion, the video below shows how you can easily copy and paste the env file and then apply it to your server. Hope this helps!
You’ll still need to fetch the env file to view the current env. Are you trying to deploy October CMS still? I can take a look at it tomorrow to see if there is anything else needed for October.
Something to keep in mind: Cleaver’s Webapps feature is much more powerful than what Forge and Ploi provides. Webapps feature is more comparable to Laravel Envoyer then Laravel Forge.
Hi @spham - I took a look at deploying October CMS and was able to get it to run. I posted a blog here Deploying October CMS . I hope this helps you with launching yours!
Also, we’ve released some new updates, some based on your feedback! I’m hoping this helps reduce some more friction around the env setup. https://releases.cleaver.cloud/