I have been using heroku. I'm working alone on a small project. Every time I deploy I have to type:
git add .
git commit -m "the same random thing"
git push heroku master
Is there a way to automate this so I can type deploy?
I'm using python for the app so if the tool were in python that would be nice.
Related
problem on the photo.
when i use the git push heroku master terminal allways give me this response.
i search on google but i didn't find any qestion on my language.
i follow all codes but i see this.
heroku login
$ cd my-project/
$ git init
$ heroku git:remote -a afbchatapp
and
$ git add .
$ git commit -am "make it better"
$ git push heroku master
enter code here
What language are you using?
Let's start with the problem at the beginning. Usually, Heroku tries to automatically detect the type of app you deploy by looking for certain files that act as signatures for the language you're using. So for example if it's a NodeJS app and you're deploying from Github, Heroku will look for the package.json file in the main branch. You can find the rest of the information for other files here. You may want to look at this first.
From there this solution to an almost similar problem should be able to fix the push.
I have a middleman project that I want to deploy it to a VPS. the documentation of middleman(build/deploy) is very poor and the gem that name it there (middleman-deploy) is not working.
My question is how can I deploy the project in my own hand without a gem?
Is the build folder enough for deployment? I mean, can I just copy that folder to production server or something else?
Thank you.
You are right
Simply copy the /build and push it to your VPS.
If you want to automate this task have a look at after_build method
https://middlemanapp.com/advanced/custom-extensions#after_build
'bundle exec middleman build',
'echo "== Build the project =="',
'cd build/',
'git add -A',
'git commit -m build',
'echo "== Pushing changes =="',
'git push origin master',
This question already has answers here:
Is there a way to set a default app for Heroku Toolbelt?
(3 answers)
Closed 1 year ago.
Heroku toolbelt is always forcing me to write an app name at the end like this:
heroku pg:reset DATABASE --app [app_name]
Is there a way to set the default app to which all my CLI heroku commands will apply?
Going to post this just in case it helps someone else out. I had the same problem even though there was only one app installed. I had to switch my heroku remote url from https to git.
https://git.heroku.com/[heroku-app-1234].git
to
git#heroku.com:[heroku-app-1234].git
Then everything worked normally for myself.
git remote remove heroku
git remote add heroku git#heroku.com:[heroku-app-1234].git
If heroku is claiming that there are multiple apps in the folder you must have more than one remote in your .git/config.
Remove the extra heroku remote or set the default using git config heroku.remote remote_name
If you have the heroku-accounts plugin installed, switching to the heroku branch worked for me, as discussed in this answer.
To swap out your existing version of the heroku-accounts plugin, use:
heroku plugins:install https://github.com/heroku/heroku-accounts.git
Note that if you've followed #Moemars answer, you'll need to switch your git remote back to https.
If you run heroku from the Git repo linked to your Heroku app, you don't have to specify an app name (unless the repo is connected to multiple apps).
This seems to be the easiest way to fix the issue:
heroku git:remote -a <app_name>
Since this wasn't mentioned until now:
Apart from the git remote, the Heroku CLI also looks into the HEROKU_APP environment variable.
By using direnv, dotenv or similar tools for project-specific environments you can easily set the respective Heroku app for each project or directory.
I want to create a wiki with gollum and push it to my own git repo, is that possible?
I created a new git repo, install gollum and started it. I got the "edit/Home" page. I added some content, saved...all looked good. Even the "revision history" showed that revisions occurred.
Then I stopped gollum and found there was nothing new in my git repo, I even checked if stuff hadn't been pushed...nothing. I'm not sure how/where it's storing the content that I add when I run it.
Any ideas?
Thanks
Gollum will not sync with a git remote. It will never perform git pull or git push. You must have gollum running on the remote server, or you must manually run git push on machines where you make edits, and git pull on machines who also want to see the wiki. This could be part of a cron job if you're running locally.
It is much easier to have the gollum process running on your web server. See below for more information:
http://www.nomachetejuggling.com/2012/05/15/personal-wiki-using-github-and-gollum-on-os-x/#toc-synchronization-with-github
May be you are checking a wrong repository, the default is for gollum to use or create a git repository at the root of page files. It can be changed with the options --page-file-dir and --base-path (cf gollum --help)
I am a complete new bie to heroku
I just installed heroku toolbar and performed the below operation
$ heroku create
Creating pure-oasis-4419... done, stack is cedar
http://pure-oasis-4419.herokuapp.com/ | git#heroku.com:pure-oasis-4419.git
$ heroku create --stack cedar
Creating mighty-stream-7975... done, stack is cedar
http://mighty-stream-7975.herokuapp.com/ | git#heroku.com:mighty-stream-7975.git
$ git push heroku master
fatal: I don't handle protocol 'git#heroku.com:https'
Can any one please tell me why i am getting this error.
I also tried
git remote -v
Still I get
fatal: I don't handle protocol 'git#heroku.com:https'
I am sure i have a mistake somewhere. Could any one help me with this.
git pull the source code to your device.
start working on the code. Or just rewrite them with yours.
git add .
git commit -m "commit message"
git push
It's maybe because of your Git version. Try using the latest one as advised in older question git error: cannot handle https