Acquia Stage Environment Clone - drupal-7

I am been using Acquia trial account. I have setup the project repository on the same. Now I want to clone the staging environment on my local machine but I am able to do that whereas I am able to clone dev environment successfully as per the mention steps.
Can anyone please help with the steps for cloning the Acquia Stage Environment.

Related

Google Cloud Platform: Updating a project after deployment

I am using Google Cloud to deploy my application. I have followed the steps in the documentation for deploying. I deployed early on in my project and it was successful. I then decided to change some files and update some features in my app. For this i followed the documentation for updating a deployment. This update was successful. It had me create the deployment in my Deployment Manager and run the gcloud commands to commence update. When I redeployed with gcloud app deploy, it was successful.
I have since added a couple more lines of code and features in my application. I followed the same documentation for updating a deployment as I had the first time I made an update and it is no longer working for me.
Does anybody have any idea what would be the problem? Again, I was able to successfully deploy, and even update that deployment once by following Google Cloud docs. Now I am having no luck.
Have you been changing the version number? Go to:
https://console.cloud.google.com/appengine/versions?project=< your project name >&serviceId=default
And make sure the version you want is active. Also, you can try:
http://<VERSION>-dot-<SERVICE>-dot-<PROJECT_ID>.<REGION_ID>.r.appspot.com
Example:
https://20200813-dot-myapp.uc.r.appspot.com
if the version number was 20200813 and your appname is myapp and the region is uc

Is there a way of running create-react-app offline with local files?

Our corporate security policy is set up where devs need to use a separate account for running non-whitelisted programs, but these accounts have no access to the internet so it cannot download any files when I attempt to run create-react-app.
Is it possible to download the necessary files beforehand with my normal account which does have internet access and then use those files to run create-react-app offline?
While you create the app it will have to download the installation packages. Maybe if you spin up your own registry locally with caching, then install the packages once, cache them and then use the cache. I am wondering how to develop in an environment that restrictive?
On the other side you could just clone the create-react-app repository, then npm link the repo globally and you can execute with the app with all files offline. The installation step will not work then I propose.

dcos install package to local universe

I have a DC/OS cluster running a local instance of 'universe'. What is the specific procedure for adding custom packages to a local 'universe'? The only documentation I have found so far (which is very limited), is related to adding packages to the global universe repo. While this is great for the DC/OS community, it does not help in regards to maintaining private universes and repos.
The only procedures I found say:
1-Create a fork of the public universe repo: https://github.com/mesosphere/universe
2-Creating a custom package and then resubmitting it back to the community.
This is not exactly what I was expecting to see. I was hoping for a simple local package creation process. Is there such a thing?
Thanks,
GAOTU
Fork this universe repo and clone the fork:
git clone https://github.com/<user>/universe.git /path/to/universe
Add your package to the repo in right folder. Write the necessary markup files
(config.json, marathon.json.mustache, resource.json, package.json etc.)
Run the verification and build script to validate and build the Universe artifacts:
scripts/build.sh
This verifies the syntax of the files you added.
Build the Universe Server Docker image:
DOCKER_TAG="my-package" docker/server/build.bash
This will create your docker image of local universe(ngnix server) and marathon.json to start the universe server.
Run Universe Server
dcos marathon app add marathon.json
Point DC/OS to local universe server
dcos package repo add --index=0 dev-universe http://universe.marathon.mesos:8085/repo
Install your newly added package in DC/OS cluster
dcos package install new_package
Do you want to add the package to your local universe, correct (i.e., not the mesosphere universe)?
In this case, after creating your custom package (and yes, there should be better documentation...) you can add this local/custom universe to a DC/OS cluster: https://dcos.io/docs/1.7/usage/repo/#adding
In general, you don't even have to fork the universe: a package repo is basically a simple folder structure. Check out the universe_builder.py here : It build a zip file, uploads it to S3, which you can then add as a new package repository as described above (and as output by the script).
In general feel to contribute and help to help improve the documentation!

Google App Engine Source Not Updating PHP

I cannot get my server code to update. I'm running a PHP instance on GAE and no matter what I do, the files won't update. In the source code view, I can see the files have updated, but when I attempt to access the updated file, I'm still viewing the old version. I've also attempted disconnecting my Bitbucket repo and using the appcfg.py update project-name command, but the files aren't refreshing when I attempt to access them. I'm not sure what to do to force the changes to take place.
My app.yaml contains the following code
- url: /(.+\.php)$
script: \1
secure: always
So the files should be getting read, right?
I was able to figure out what went wrong. I downloaded my code using appcfg.py download_app -A <your_app_id> -V <your_app_version> <output-dir> and noticed that I was downloading the old versions of the files (and wasn't downloading the new files). Turns out using source control within GAE will upload new code, but won't deploy it. I attempted to use appcfg.py update project-name one more time, but it didn't work. Turns out I didn't disconnect my Bitbucket account (could have sworn that I did...). Once disconnected, I was able to update the project using appcfg.py update project-name. While I was figuring this out, I reached out to Google support and received this message:
To use the feature of push to deploy you need to spin-up the Jenkins
Instance on GCE (Google Compute Engine) and then it will take the
updated code and execute it in the environment. Go through [1] for how
to enable the Jenkins instance and its configuration according to
different run time.
In your issue, you just mirrored the code from Bit Bucket to Cloud
Repository, as it is just doing the version control for the
application not executing the application. So basically you have have
the option of using Jenkins instance as I described above to test the
different version of the code or using the appcfg.py update command
from your local repository.
I haven't attempted to install and use Jenkins since I fixed it after disconnecting my Bitbucket account), but it may help others who have run into this problem.

Capistrano 3: Doing a Git pull on the an existing deploy relese folder

I was using Capistrano 3 to do a deploy of a PHP app from my linux machine.
All was working well until the machine I was using to do the deploy died.
Now all I want is: On the Server when I used to deploy: do a git pull on the last deployed folder to get the changes I have.
Any clue as to how this can be done.
I see no .git folder in the last deployed release folder
I do see repo, but running any command in it does not help.
Please help, thx in advance.

Resources