This article is turned over the internet, when Appharbor use git to upload code, you need to enter a user name and password, that is, Appharbor login username and password.
Refer to this article http://www.freehao123.com/webweb-net-appharbor/
. NET Managed platform Appharbor use
Original address
first, the deployment of Appharbor preparation 1, Appharbor account. To Appharbor registration can be, 2, the complete project. Want to experience a demo project that can be used directly with VS, 3, Git. Learn about basic operations, 4, Github, optional. Appharbor can hook up your GitHub account, and of course you can not use it.
second, application set 1, register Appharbor, in the page create new application, and then enter the application you just created, select setting, set Application Name and Tracking branch. Tracking Branch is the branch you use to push, we choose Master. 2. Add the SQL Server database. Click Add-on, locate SQL Server at the bottom of the page, and select See More,install free Yocto.
III. Configuration Item 1, on the Application page, locate the SQL Server add-on that you just installed, and choose Go to SQL Server, which opens a detailed interface for database connections. Configure the Connection string in the project's Web. config file. You can use the Web. config transform to keep the debug and release versions different, so that you don't have to modify each release. If you are not sure if your settings are correct, you can check your Web. config transformation here. 2. Copy the local database to the given database. You can find the Host,username and password of the database on the page just now.
four, published to Appharbor 1, found in the application page Repository URL, Click it will automatically copy Repository URL to the clipboard, shaped like
Https://[yourusername] @appharbor. Com/[yourapplicationname].git.
2. Use Git to publish to Appharbor. First build the repository, then commit, and add the Appharbor remote, the last push can be. The approximate process is as follows:
git init git commit-m "first commit" Git remote add Appharbor https://[yourusername] @appharbor. com/[yourapplicatio Nname].git git push Appharbor master
You will be prompted to enter the Appharbor password during the process.
(using the Git GUI to operate, ( we've added the file to the local Git repository and submitted it, and now it's uploaded to the remote git repository.)
Click Upload:
Enter the Repository,
Click Upload:
Will ask for a password and then upload it successfully)
You can go to the repository to see the files:
File Address:
http://project name. apphb.com/
To upload to a remote library step:
Add new file: Git add dir/files
Commit file: Git commit-m ' Add xxx.txt '
Uploading files: git push
Official Tutorial: Http://support.appharbor.com/kb/getting-started/deploying-your-first-application-using-git
3. After the push succeeds, refresh your application page to see that a commit and Build Status will be displayed after the Build,build is completed. Click the current build status to download the project version to the Appharbor build. 4, click "Go to your application" can access your application.
v. Failure of operation? in the event of a failure to run, security considerations may Appharbor not fully display the detailed error message, this time you need to troubleshoot the error. 1, to determine the success of local compilation, can be run on the local server, but error on Appharbor, first check the Web. config file is configured correctly, 2, if the Web. config is configured correctly, you can see the data in SQL Server is correct; 3. The errors option is available on the application page, 4, download the Appharbor compiled version, and then run locally to see where the error occurred.
To view a git record:
Click on the left "setting"-and then click on the right "update application".
. NET Managed platform Appharbor use