Development in Windows and Deploy to Ubuntu 16.04 locally using capistrano - yii

I am finish developing my website in windows. I am using YII framework. Then I am deploying it on the Ubuntu 16.04 LTS. This is physical server I am working on my office. My question can I deploy the project using the capistrano via offline? If yes, how can I do it?
thanks.

Generally speaking: no. Capistrano is primarily designed for deploying from a client machine (e.g. your development environment, or a CI environment) to a server via SSH. If you are not in a networked environment (I assume that's what you mean by "offline"), then Capistrano is not an appropriate tool.

Related

Deploy website to IIS from linux build agent

Problem description
I have a jenkins master that uses a linux build agent to build my ASP.NET Core websites using official MS linux docker containers.
I previously used a windows VM with the necessary tooling installed to build these projects and used MSDeploy.exe to deploy the sites to an IIS webserver. For this deployment I created a web package.
In my linux docker container I obviously can't use MSDeploy.exe.
Question
How can I savely deploy an ASP.NET Core website to an IIS webserver from a linux docker container?
MSDeploy.exe connects to the IIS using a local IIS Users credentials, shutsdown the app, replaces all files that are also present in the new package, so it not just replaces the files but also does some safety settings around the actual replacement.
Misc
I've found this question here, but unfortunately no real answer was found there.
Thanks in advance

Laravel 5.3 update to remote apache server

I have an Ubuntu machine in Azure with my Laravel project and it works good. Today, I used Laravel Auth on my localhost environment and it works too. I save the data in a local database.
Now I need to update my Laravel project in Azure. It is just update the project or I need some configuration on virtual machine to work with the local database?
The only thing you should focus is you have an Ubuntu instalation, either it is on DigitalOcean, AWS or Azure, all are same.
Secondly, consider installing Laravel Homestead on your local machine. That will assure you that the server and local development have all the same components, so you can be pretty sure that if it works on your localhost, it will work in your server.
As for your question, please conpare the verion of the components on your system (local) and server. If both are same, everything would be fine.

Hyper-V Server Core Guest OS Install

I am new to Hyper-V and Server Core but I am stumped as to how to install a guest OS from an ISO using only PowerShell.
I have downloaded the Hyper-V Server ISO and installed it on my server. It only installs Server Core and does not give me the option for a full GUI option. I configured its network settings, etc and all looks ok. So Server Core installed properly and Hyper-V feature is enabled. I can use PowerShell to create a VM with VHDX and link my Guest OS ISO to it. When I start the VM there is no console UI to install the OS.
How are you supposed to install a guest OS with no console interface to setup the OS?
Note, there is no option under this configuration to enable the OS GUI as some posts have suggested.
First, please don't confuse "Server Core" with "Hyper-V Server". "Server Core" is an installation mode of Windows. Among other things, it can be converted to GUI mode, which is why people keep telling you to just turn the GUI on. Hyper-V Server looks like Server Core but it is not Server Core.
For your actual problem, you're not going to find a simple out-of-the-box solution. You could work up a complete unattended installation process. You could set up a Windows Deployment Services server and have it install via PXE boot. I think some of the third-party Hyper-V management solutions allow you to connect to the console of a VM from within the local Hyper-V Server.
Hyper-V Server was designed with headless operation in mind. It was expected that you would use it to configure and perform maintenance on the management operating system and, if desired, the virtual machines as containers. The guest operating systems themselves were not really meant to be managed from within Hyper-V Server. What it's expected that you'll do is use a full GUI, whether another copy of Windows Server or a Windows desktop operating system running Remote Server Administration Tools to remotely connect to Hyper-V Server and manage its VMs.

How to set up IBM work light server on my machine

Hello Folks,
We are recently working on IBM worklight and what we want to try is:
We have two machine, one we want to set as server and other one is for my developer to build the app.
Currently we have installed Apache Tomcat server on the machine which we want to make as server. We even have IBM Worklight installed on it. Now What I want to achieve is to deploy the app from other machine to this server. But I am not able to set up the things properly.
Things done so far:
Installed Apache Tomcat server software on a machine (server)
Installed IBM Installation Manager
I am not getting how will I set up the Worklight Server on this machine. Can anyone provide some information?
You cannot directly deploy from Worklight Studio (the Eclipse plug-in) to a remote Worklight Server.
The steps you need to take are:
Setup your application for a remote server, via the Build Settings and Deploy Target window
Build the app
Take the .wlapp/.adapter file and deploy it to the remote Worklight Server via it's Worklight Console
If you have done any server-related changes (authenticationConfig.xml, Java code, ...) you will need to first deploy the project's .war file to the application server that hosts the remote Worklight Server, and then the .wlapp.

Installing Trac as a Windows Service on Windows Server 2008

As the title suggests, I'm trying to install Trac as a Windows Service on Windows Server 2008. I've looked into the instructions at Installing Trac as a Windows Service. Out of the different options given there, I would prefer an Option 1 like approach which uses some Windows utilities instead of installing additional software but the instructions seem a bit outdated for Windows Server 2008 as instsrv.exe and srvany.exe are not available for Server 2008. There is a suggestion to use winserv.exe but I can't find it anywhere and the suggested Google search does not provide any credible results.
Is there a way to use the sc Windows utility to install Trac as a service? Has anyone tried this?
Update: I tried using sc but that does not work. sc only interacts with programs developed as Windows Service Applications so they have hooks to interact with sc.
I could solve this problem using winserv.exe, that can be downloaded from this tutorial page: http://wiki.go-redrock.com/wiki/TechAsService
Once you get the binary file run:
"C:\path\to\winserv.exe" install tracd -displayname "tracd" -start auto "C:\path\to\python.exe" c:\path\to\python\scripts\tracd-script.py <your tracd parameters>
net start tracd
Hope you can solve your problem like I did!
If you just want to easily install Trac on a Windows server, I can recommend Bitnami Trac Stack to you. It comes as 2 services, one for Apache web server running Trac as python module and one for SVN.
Are you restricted to using tracd to host your Trac installation? If you use a real web server, this is typically a bit easier. Web servers like IIS and Apache typically install themselves as a service. If you set up something other than tracd to serve up your Trac site, it will most likely run as a service by default. In general, you'll have a better experience using a full-featured web server like Apache instead of the minimalistic tracd.