I'm making a script to automate environment creation on Heroku, and I'm strugling with 2 points:
How can i Enable Automatic Deployment, using CLI? I want a command like I was clicking this button here in the Deploy tab
Second point is how can i deploy a branch via CLI, like I was clicking this button here:
NOTE: I'm using github connected to my project
Related
I am choosing Xcode, Preferences, '+', Gitlab Account. Then I have tried lots of combinations of the Account and Token. In the Token filed I am entering the token I have generated (should it be named after the project I am going to connect?). In the Account field, I have tried to enter the mail connected with the Gitlab account, Gitlab username. However, nothing works. Please, can you help me?
From the Source Control navigator add the remote url of your project in GitLab.
This would setup Xcode to identify where to push the commits to.
Instead of adding the User Profile through Preferences (did not work for me), just go to Source Control -> Commit, and commit locally, and then Source Control -> Push to push to your repository. At this point, Xcode will ask for your username and password, just enter your credentials there and it would work like a charm from there.
I still do not have an answer to why I was not able to add the credentials via Preferences, but this works too.
Select Open in Xcode
There might be an issue to add a GitLab account on Xcode. (also Xcode supports only RSA encryption and not the ed25519 as suggested by GitLab).
Until this is fixed here is a workaround I am using!
On the GitLab repository page you can select Open in Xcode and the website will ask where to save the project, and then open it in Xcode for you.
After making changes I would commit and push with the command line.
Make sure that your Git username and email match your GitLab.com account for this repository, and an SSH public key was added to your GitLab.com account.
PS. I noticed that this option appear only if GitLab can recognise the repo as an Xcode project. For this to happen, the project and the xcodeproj file should should be in a root folder.
I have developed an application using Spring locally. I want to deploy my existing application using Google App Engine. Does anyone know how to deploy existing application to GAE?
You can convert your project using Cloud Tools for Eclipse. Go to this page and drag and drop the 'install' icon inside your Eclipse installation. See the Google documentation on how to use the plugin.
Basically you right click on you project and convert it to a maven project, or choose File > Import... > Existing Maven Projects wizard. Once you have your maven project loaded into Eclipse, tight click again and Configure > Convert to App Engine Project. This guide explains the whole process.
Finally, having your project set up:
To deploy the project to App Engine Standard environment:
Right click the project in the Package Explorer the project to open
the context menu.
Select Deploy to App Engine Standard
A dialog pops up.
Select the account you want to deploy with, or add a new account.
The list of projects the account has access to loads. Select the one
you want to deploy to.
Click OK.
All the details are here.
UPDATE:
In this Github repo, there are instructions on how to convert an existing Spring Boot App to Google App Engine. In this answer, I apply those instructions to a sample application.
I have created multiple applications from boilerplate templates and for some reason, it is no longer possible to download the Starter Code. I open the application panel, select Start Coding in the left pane, then select Eclipse Tools for Bluemix. Further down, as expected, there is a "Download Starter Code" button, but it links back to bluemix.net instead of to a code archive file. Has anyone seen this? I have deleted / re-created the apps many times, but it never produces an archive. I have seen several posts here on Starter Code, but none specifically with this issue.
In some cases this behaviour is related to the browser language setting. Try setting it to English (if you use another language) and check if the download button url now points to the correct zip.
Another possible workaround is to instantiate one of the boilerplates and then click on the Add Git button at the top right hand of the screen when viewing the overview of the running app. Using the Add Git button on a boilerplate (or runtime) instantiated app you can see the sample code in DevOps Service. You can download it from there or you could git clone the repository and get the code that way.
Alternatively please take a look at the IBM Bluemix repo on GitHub.
you can do same by three ways you can also clone git repository of starter code or you can download commandline interface and fallow instruction
for me while developing node application download eclipse archive worked fine
I wish to create a new Xcode project that will be mirrored on GitHub.
So I select OS X commandline project.
Now a dialog appears for me to choose a target folder.
At the bottom is this:
Now every tutorial I seen says to choose "My Mac", then create a new repo on my account on github.com, and then link the two together using the commandline. Something like git remote add https://github.com/me/fooproj.
What is this second option? Does it somehow bypass the need for using the commandline to link? i.e. Can I just use it and put the github repo url in?
No, you can't just input the github repo url. This option refers to connecting to a Mac OS X Server running the Xcode service. For more information, check the link below:
http://help.apple.com/serverapp/mac/4.0/#/apdEC37D10C-B277-4C06-9E1F-8DCB0A5970EB
I keep getting an error when I try to commit my project files using Xcode.
File -> Source Control -> Commit
"The operation could not be performed because no valid working copies were found."
"Please verify that your files are under source control and try again."
This is an existing project that is NOT under source control. How do I get my project files under source control, using Xcode?
EDIT: Answered my own question.
Step 1) Restart Xcode
Step 2) Choose connect to repo
Step 3) Enter repo address
Step 4) Choose existing project folder you wish to place under version control
Step 5) Voila! :)
Since a lot of folks land here when they google "Add existing project to BitBucket using Xcode" and then click through to the link that goes to my blog post on the subject, I thought I would put the information here (in the spirit of SO which discourages link only answers.)
NOTE: These instructions assume you have already made a local git repository for the project. You may have done this at project creation. If not, you will need to create the local git now. See this StackOverflow post for how to do that: https://stackoverflow.com/questions/19495141/add-local-repo-for-existing-xcode-5-project
For Xcode 9 and the new Beta UI for Bitbucket:
Log into your BitBucket Account on their web site.
Click the Create button (plus sign + in the newest version of the web UI). And click Repository.
Give your new repository a name. Additional features for the repo can be configured under the Advanced menu. Make sure the check mark for Private is on if you desire that. Verify that the repository type is Git. If desired, add issue tracking, and a Wiki. Select Objective C or Swift from the language drop down. Then Create Repository.
Next, you will want to add your code. On the top of the Overview page is a field with the HTTPS URL of your project. It will look something like this: https://johndoe#bitbucket.org/xyzteam/xyzapp.git. Highlight and copy that URL text.
Run Xcode and load your project.
From the left pane in Xcode, select the Source Control Navigator. Expand the project node. Right click the Remotes node under your project. Select “Add Existing Remote…”
Give it a remote name, such as Bitbucket. Paste the URL from step 4 into the Location. Click Add. It should now appear as a Remote location in the Source Control navigator.
Once your remote has been added, you should now be able to push to the remote. Select Source Control/Push… It should show your Bitbucket remote as the destination and will show (Create) as this is the first push. Click Push.
If this is the first time you are pushing this project to BitBucket, you will be asked for login credentials. The User Name will be prefilled from the URL, so enter the password. Click Okay and after some seconds, it should complete.
If all goes well, you now have the repositories linked up. Go to the BitBucket site, select your repo and you should see the code.
For Xcode older than version 9 and the old Bitbucket UI:
Log into your BitBucket Account on their web site.
Click the Create button.
Give your new repository a name, a description, and make sure the check mark for Private is on if you desire that. Verify that the repository type is Git. If desired, add issue tracking, and a Wiki. Select Objective C or Swift from the language drop down. Then Create it.
Next, you will want to add your code. I am assuming you have an existing project. On the page, you will select “I have an existing project” link from the Command line section.
You will see instructions for linking your local git repository to the remote. There is no need to follow those instructions. However, you will see an https url listed. It will look something like this: https://johndoe#bitbucket.org/xyzteam/xyzapp.git. Highlight and copy that URL text.
Run Xcode and load your project.
From the main menu, select Source Control. Under the gray “Working Copy” item, you will see a menu with your local git repo name and the currently active branch. Expand this menu and you will see an option to Configure [Your project]…. Select this.
Select the Remotes pane from this screen. At the bottom, click the plus +. Select Add Remote…
Now you need a name and a URL. For the name, typically just use your project name, then paste the URL copied earlier in step 5. Some people have found that they must remove the user name portion of the URL. Per the example, remove “johndoe#”. This may have to do with whether your project is set up as a team project, or an individual project.
Click Add Remote. Click Done.
Once your remote has been added, you should now be able to push to the remote. Select Source Control/Push…. If this is the first time you are pushing this project to BitBucket, you may be asked about keychain access and/or login credentials. Enter the appropriate responses, such as Allow for keychain. If you have already done this before, it will simply use the keychain data without further prompting.
If all goes well, you now have the repositories linked up. Go to the BitBucket site, select your repo and you should see the code.
If you want to see a version of this information with screen shots, see my blog post.
Login your bit bucket account and Create a repository in your account
open terminal run these following command
1- cd /path/to/your/repo
2- git remote add origin <url of your repository >
3- git push -f origin master
it works for me, Thanks.