How do I set up Deployer to sync only specified folders from localhost to production? [closed] - laravel

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have a localhost Laravel project I want to deploy with Deployer. Currently I do it manually using an FTP tool and only sync the app, resources folders and seems to work just fine.
I want to use Deployer or some other tool I can run from terminal to sync or upload new files to the server.
Can someone help with a recipe or advice?
Do I need rsync setup using deployer or is there a way to do it without recipe/rsync.php?
Here are the steps I want configured(for now):
connect to the server, I have ssh access and I can probably configure a key
setup the 2 3 folders I want to sync, as well as files that need to be ignored.
These seem like simple tasks but for some reason I have a hard time setting them up.
Thank you

I don't know if this questions is still pending for answer, but one alternative is using some versioning tool like git, you only watch some folders and ignore the remaining. and with the basic recipe you can deploy a github/gilab/bitbucket project.
A more in dept explanation on this topic can be found [enter link description here]here1.

Related

Why is using composer for TYPO3 production deployments discouraged? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
The official documentation for deploying TYPO3 states "The composer install command should not be run on the live environment."
Why is this? As far as I know deployer - a well received deployment tool for TYPO3 - does exactly this.
TYPO3 Recommends Composer as the Main Installation method.
but its good practice to run "composer install" on your local machine (or a CI Pipline like Github Actions) then move the downloaded code to the final destination server. and i think deployer is dooing exaclty that.
this has multiple advantages:
less dependancies on the production system. (one less software there to be exploited)
possiblity to run unit tests before deployment
add additional build steps for your deployment (like compilin sass
or javascripts)
ther is no need for credentials of private repositories on the production server

Write a script to delete user folders when logging out [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 days ago.
Improve this question
You need to configure a policy in windows server 2019 standard to create a user folder, and then use GPO to run a script (cmd, powershell) to delete this folder when the user logs out. Question what policy should I use when creating a folder and what will the script look like? I have no experience writing on cmd and powershell
I was looking for the right policy, I found it, but I'm not working the way I need to

How to get LowCodeUnit to create my yml file? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I was reading the docs for hosting my GitHub repo via LowCodeUnit and saw that the yml file was supposed to be generated for me when I set up a source control. The problem is that when I save that source control nothing happens, no github actions kick off and yml file is not created. Is there a way to force it to be generated?
This is usually a problem with the GitHub Oauth. If you go to your github settings, click on applications and go to the "Authorized OAuth Apps" tab and then revoke access to Fathym LowCodeUnit. Then navigate back to LowCodeUnit, connect your GitHub account again and then make a new source control you should see that yml file will be created for you.

How do I go about migrating a Xamarin Forms application to GitHub? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a working Forms application and I would like to start using Github to track any changes to the application. Is this something I can do after the project is completed or do I have to do it right from the start? Would appreciate advice on where to start and some basic steps that I should do.
You will need to follow these steps:
Create a repository for your code in Github.
While creating it, select the option "create a Git Ignore file" and
select from the drop down the option Visual Studio.
Once created download the repository to your local machine.
Now, Move all your code files to this recently created folder.
You will merge the downloaded cloned repo and your existing code.
This will cause Git to detect all changes made (new files added from
your project & ignore the system files not needed in GitHub).
Proceed to do a commit to save the changes.
Proceed to do a push of your changes.
You will now have your source code in your created repository in
Github.

tomcat 7 instance not starting on ubuntu [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm new to Tomcat, Apache and Ubuntu and i have no idea where to look for logs.
I've followed the article letter by letter of how to create multiple instances of tomcat but ive git a glitch and im not sure how to go about debugging it. Three quarters down the page im supposed to be kick starting the instance but all i get back is [fail], no error message. Im not sure where to look or what i can do to deug this.
https://github.com/getrailo/railo/wiki/Ubuntu-12.04-Railo-4-Beta-with-Tomcat7-multi-instance
Any help appreciated. thank you.
I've finally managed to get where i want and thats to have multiple instances of tomcat all running at the same time. I wouldn't have been able to do this without the article mentioned in these posts, so big thanks to all their hard work.
The reason i was getting [fail] message when trying to start up tomcat, was because i followed the java options steps based on my hardware, that cost me a day!! When reset to its default i was able to start/stop my instances with no errors. I would advise you to use the default (JAVA_OPTS="-Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC") then tweak when you have everything running.
If you get to the point where you are getting permission or folder not found error when trying to browse your instance, it is because tomcat7 doesn't have ownership to your working folder (follow this to know how to create your working folder with railo deployment).
Hope this saves someone hours/days.

Resources