Laravel build locally and auto deploy to remote server - laravel

My web application are built on latest laravel framework with it's front end task and dependencies are managed through gulp, node, npm and bower.
My remote hosting server basically supports git only and does not support nodejs and npm. So currently I am building it locally and deploying it manually via ftp.
So, is their any tools that simply track the changes on locally build file and uploads the changes on the remote? Or may be there are better ways to do it?

What you are describing could be fixed by committing your locally built files.
If it supports git and you have ssh access - set your remote repository local machine. Commit your local build files and push to a remote repository. Pull changes from remote repository on remote server.

I had a similar situation where I was stuck with ftp and using Laravel.
To aliviate the agony of using ftp, I found this tool called dploy.
It simulates git in ftp, so you commit locally or to your remote repository, and dploy will take care of synchronizing your local build with your live server.
https://github.com/LeanMeanFightingMachine/dploy
I hope it helps.

Related

How do I push files from laravel forge managed server to gitlab?

I cloned the statamic repo. Then installed it via laravel forge. Then I installed a starter kit so now the files in the clone repo is completely different from what's on the server. How do I push the files from the server to gitlab to override the files in my cloned repo?
Nevermind. Seems running git push -u origin master from commands page in forge pushed the code needed.

Git how to access repository Windows local machine?

I installed Git for Windows in order to clone and pull a project hosted on a remote Linux server.
In my repository (D:/repositories/my-project) I launch the following commands
git clone server#192.168.56.101:/var/www/web/my-project/.git
git pull origin master
So far so good. I pull the project files whenever modifications are applied on the server.
But now I'd like to pull or push from the remote server to my local repository.
I tried many things but I can't figure out how to access the repository located on my local machine.
Things like:
git pull duddy#my-pc:/d/repositories/my-project/.git master
just doesn't work, Git says:
ssh: Could not resolve hostname my-pc: Name or service not known
fatal: Could not read from remote repository.
Can someone helps me ?
First things first, I would recommend you try simply running git pull.
If this doesn't work, try running git remote -v and check to make sure that the URL for your server is listed as an origin (server#192.168.56.101:/var/www/web/my-project/.git).
Your issue is that you are inputting the URL for your local repository in your attempt to git pull.
I suggest reading the git-pull documentation to learn more about how pull works.
Basically, you need to have some service at your workstation which serves the requests. There are following options (I did not try most of them myself, just making it up from what I know):
use the windows file access. This is the easiest to setup at the windows workstation - just share the repository folder. The Linux side should somehow be able to mount windows shares (like described, for example, here: https://wiki.ubuntu.com/MountWindowsSharesPermanently). If you manage to mount your \\my-pc\repo to some /mount/my-pc-repo, then you can access it as file:///mount/my-pc-repo.
run git daemon at windows. Set up instructions are available at SO (for example, https://stackoverflow.com/a/2275844/2303202) and it pretty straightforward, but it does not have any authentication and in most cases it is reasonable to use it only for reading, so you will not be able to push to the workstation, only fetch.
set up ssh daemon and access through ssh authentication with read-write access. Git for windows installation contains the needed software (the sshd.exe binary, it is there at least for Git for Windows 2.6.0), probably there is a way to utilize it but I could not find it quickly.
set up HTTP(S) service at your workstation. I don't know if it is possible to do only with Git for Windows (it might be, with some perl module which happen to be included with it), or you should use some other software.

Bonobo Git Server: how do you open complete repository in windows explorer/backup?

I recently installed Bonobo git server on my workstation. It will work as a git server for me and my colleagues. Using a script, the repositories will be stored on a separate server usinng a .bat file to copy the files regularly. The problem is I don't know where to find the repo files. I selected D:/git_repo as destination for bonobo repositories, but when i go there in explorer, there are only a few files and not the sources (the folders are alos only a few hundreads kbs big).
Do you have any ideea where the complete files are located?
If it was me, instead of using a scheduled script to copy the repository files to a separate server, I would on the destination/backup server have a scheduled task that performed a 'git pull' from your server.
Did you changed the Repository directory in the Bonobo UI settings ?
If you did, try to restart the IIS service.
If none helps, thenWhat exactly are you copying ? If your repositories are initialy exist, either by a script you execute or by the Bonobo UI, they can be created directly to your D:\Git_Repos as you specify

Error creating git repos using Xcode/OS X Server

I recently installed OS X Server on a seperate machine and attempting to host some git repos. When I try to create a new project & remote repo with Xcode I get an error -
Could not connect to the remote repository because the server was unreachable.
If I attempt to configure it again after the project has been created I get this error -
Cannot create hosted Git repositories at path because path already exists: /Library/Developer/XcodeServer/HostedRepositories/SampleProject
Looking at the server - I can see the repos were actually created, but for some reason I can't connect/push to them. I have tried this on the machine running the server and another one on the same network with the same results. Is something not configured correctly or any way to get at a more detailed error?
Fixed it by going into the Xcode service repository settings and enabling SSH access.

setup remote Git server for testing EGit

I need to setup a Git server on windows 7 with IIS to test my EGit with eclipse. Eventually it would be use to checkout and checkin from a remote server. But I would like to test the remote checkout and checkin for EGit using a local server as of now. I have tested it to work with Github (only https not SSH, SSH seemed to have a problem). But I would like to host my own git remote server for EGit. Please let me know as to how to go about it. Thanks in advance.
You can use the "Git Web Access" project:
For those who have interests in a Smart-HTTP Git server on IIS, the project provides an ASP.NET HttpHandler that let you run Smart HTTP Git on IIS.
It is inspired by Grack, a Ruby Rack based application for Smart HTTP Git and git_http_backend.py, a python implementation of Smart HTTP Git.
You also can try out the "Bonobo-Git-Server" project, through its main project page.
Bonobo Git Server for Windows is a web application you can install on your IIS and easily manage and connect to your git repositories.
You will find other alternatives (sometime older) in "How to setup GIT bare HTTP-available repository on IIS-machine".

Resources