我还在浏览一些关于RoR的指南,我在这里部署演示应用程序
我按照说明:
完成Microposts资源后,现在是将存储库推送到GitHub的好时机:
Run Code Online (Sandbox Code Playgroud)$ git add . $ git commit -a -m "Done with the demo app" $ git push
这里发生的错误是推动部分......它输出了这个:
$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
git remote add <name> <url>
git push <name>
Run Code Online (Sandbox Code Playgroud)
所以我尝试按照说明执行此命令:
$ git remote add demo_app 'www.github.com/levelone/demo_app'
fatal: remote demo_app already exists.
Run Code Online (Sandbox Code Playgroud)
所以我推:
$ git push demo_app
fatal: 'www.github.com/levelone/demo_app' does not appear to be a git repository
fatal: The …Run Code Online (Sandbox Code Playgroud) 我一直在网络应用程序上的本地工作,我被要求将其推送到一个空的(只读取我的文件)私人仓库为这个项目创建.我是新来的git,我很难这样做.
有人能告诉我我做错了什么吗?
我首先在本地使用命令行导航到应用程序的主文件夹并初始化git.之后,我尝试克隆远程仓库:
git clone git://github.com/somename/Web-App.git
Run Code Online (Sandbox Code Playgroud)
但我得到错误:
克隆到'Web-App'...致命:远程错误:未找到存储库.
我知道回购在那里..我是否真的需要先从那个遥控器克隆或拉出,或者是否有办法推送到那个回购.
同样,我所要做的就是将我本地文件中的文件推送到我可以访问的特定仓库.
我真的很感激任何帮助.
我正在尝试将我的代码推送到我的位存储桶存储库,但从位存储桶更新后的最后几天开始,我必须使用令牌来推送代码。但我不知道在哪里添加令牌。谁能告诉我android studio的整个流程。我也阅读了 此文档。但不知道如何在 android studio 中使用它。
我正在学习本教程,但是当我尝试推送到Heroku时失败了.似乎缺少"sqlite3.h".我是新手,所以我不确定哪些信息可以帮助人们诊断问题,所以这就是一切:).我在Mac OS X 10.7 Lion上运行.以下是我正在使用的所有内容的版本:
Amits-MacBook-Air-2:demo_app amitgupta$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
Amits-MacBook-Air-2:demo_app amitgupta$ rails -v
Rails 3.2.3
Amits-MacBook-Air-2:demo_app amitgupta$ sqlite3 -version
3.7.11 2012-03-20 11:35:50 00bb9c9ce4f465e6ac321ced2a9d0062dc364669
Amits-MacBook-Air-2:demo_app amitgupta$ heroku -v
2.25.0
Amits-MacBook-Air-2:demo_app amitgupta$ port -v
MacPorts 2.0.4
Entering interactive mode... ("help" for help, "quit" to quit)
[RailsApps/demo_app] > quit
Goodbye
Run Code Online (Sandbox Code Playgroud)
当我尝试推送到Heroku时:
Amits-MacBook-Air-2:demo_app amitgupta$ heroku create --stack cedar
Creating floating-stream-8009... done, stack is cedar
http://floating-stream-8009.herokuapp.com/ | git@heroku.com:floating-stream-8009.git
Amits-MacBook-Air-2:demo_app amitgupta$ git push heroku master
Run Code Online (Sandbox Code Playgroud)
这是我得到的:
Counting objects: …Run Code Online (Sandbox Code Playgroud) 我需要在django中构建一个推送系统,基本上它的功能是将消息从服务器推送到浏览器.
由于nodejs不能使用,我更喜欢websocket或orbited,但我不知道如何在django中实现这两个中的任何一个.请给我推荐一种方法,这对我很有帮助,谢谢.
我的回购:https://shadyabhi@github.com/shadyabhi/learnajax.git
shadyabhi@archlinux-N210 ~/github/learnajax $ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = https://shadyabhi@github.com/shadyabhi/learnajax.git
fetch = +refs/heads/*:refs/remotes/origin/*
shadyabhi@archlinux-N210 ~/github/learnajax $ git config -l
user.name=shadyabhi
user.email=abhijeet.1989@gmail.com
merge.tool=vimdiff
github.token=1095de7027bVVVV01cfAAAAAa5fc8f6
color.ui=auto
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://shadyabhi@github.com/shadyabhi/learnajax.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
shadyabhi@archlinux-N210 ~/github/learnajax $ git push -u origin master
Password:
fatal: Authentication failed
shadyabhi@archlinux-N210 ~/github/learnajax $
Run Code Online (Sandbox Code Playgroud)
现在,我无法进入我的回购.我已经检查了github.token与我的帐户设置相同.Ofcoarse,我输入正确的密码,但我收到此错误.
我正在构建一个需要从服务器进行实时更新的iOS应用程序,我想在没有轮询的情况下完成此任务.
有没有人知道有助于实现这一功能的技术,工具,产品或库?
我为新项目创建了本地hg存储库:hg init ; hg addremove然后我创建了空的上游repo,并在那里推送了第一个版本:hg push https://remoterepo.
现在,我想将其设置https://remoterepo为默认上游,所以我可以在不给它的情况下执行hg push/pull.
我很惊讶谷歌没有给我一个直接回答"设置mercurial upstream",我也没有在SO找到直接答案.因此,为了所有使用SO作为howto的人的利益,这样做的正确方法是什么?
我有一个包含其他git存储库的git存储库.是否存在以递归方式推送和/或拉取元存储库而不是子存储库的命令?
我创建了一个应用程序来从Web服务器发送远程通知.当我在开发模式下测试应用程序时,所有通知都在手机上正确到达,在AppStore发布后,应用程序不再收到通知.
这就是我做的:
这是我测试的:
以下是我在Xcode上签署应用的方式:

这是发送通知的php页面的代码:
$ctx = stream_context_create();
//stream_context_set_option($ctx, 'ssl', 'passphrase', 'development_pwd');
//stream_context_set_option($ctx, 'ssl', 'local_cert', 'ck_development.pem');
//$fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx); //test
stream_context_set_option($ctx, 'ssl', 'passphrase', 'production_pwd');
stream_context_set_option($ctx, 'ssl', 'local_cert', 'ck_production.pem');
$fp = stream_socket_client('ssl://gateway.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx); //production
echo "<p>Connection Open</p>";
if(!$fp){
echo "<p>Failed to connect!<br />Error Number: " . $err . " <br />Code: …Run Code Online (Sandbox Code Playgroud)