webserver
We intend to use unicorn as our webserver. Add Gem ' unicorn ' and Gem ' foreman ' in gemfile and then bundle it (run bundle install command).
When you start the rails application, you need to configure the unicorn first, so we put a unicorn.rb file in the Config directory. Here is an example of a unicorn
Basic Rails Applications
Now let's start with a basic rails application. For a better presentation, I use Ruby 2.2.0 and Rails 4.1.1
Run at Terminal:
$ RVM Use 2.2.0
$ rails New CD Docker-test
To create a basic controller:
$ rails G Controller Welcome index
..., and then edit routes.rb so that the root of the project points to our newly created Welcome#index method:
Root ' Welcome#index '
Run Rails s at the terminal, then open the browser,
It was not long before the release of Ubuntu14.04. The developer has started to work for Ubuntu14.10. You may remember that Canonical founder Mark middot; leworth has recently announced that, ubuntu14.10 will be codenamed a utopia unicorn (UtopicUnicorn ). According to the Mail List, Canonical officially launched the Development version of Ubuntu14.10 utopia unicorn. The official version of the release log
Before writing the C # project, it is convenient to redo the list, using List1. Union (List2). ToList () can (enumerable.union). And, if you want to remove the List2 item from the List1, it is also convenient, list2. Except (List1). ToList ()
Now write Java project, it does not have such a native method can be directly invoked, operation, a little more than a few steps.
public static void Main (string[] args) {list
Program output: Merge and remove duplicates: [
following command automatically configures and initializes the Gitlab
sudo gitlab-ctl reconfigure
4, start and log in
The following is the default username password, the first login will prompt you to modify the password:
Username:root
Password:5ivel!fe
Then you can have a pleasant toss!
Third, the installation of problems occurred
I heard that the Gitlab installation will appear in a lot of problems, but in the process of my installation seems to have not encountered many p
Canonical will officially release Ubuntu14.10 (UtopicUnicorn) This week. At this moment, ubuntu has just reached the freezing point, all developers stop updating and changing the system. Everyone focuses on fixing key bugs unless a serious accident occurs, this is not the case. Now, Ubuntu 14.10 (Utopic Unicorn) is expected to be officially released in Canonical this week. At this moment, ubuntu will be frozen.
Just as Ubuntu reached the freeze point,
Ubuntu14.10 ldquo; UtopicUnicorn rdquo; (utopia unicorn) has been officially released for download, using kernel 3.16, Unity desktop upgrade to 7.3, while Ubuntu-Kylin14.10 is released, including the series of youke software and a number of popular applications developed in cooperation. We have also performed a lot of system optimization and feature enhancements for you, and added new installation animations and wallpaper competitions. Latest Kubunt
instead drop-down menu. (Radio or CheckBox instead of select menu)The 8.form button should have type types, using type= "Submit", type= "reset", or type= "button".9. The primary form button appears first (in the DOM), especially where multiple submit buttons apply. The order in which the views are displayed can be modified using CSS.10. Effective use of [HTML] View plaincopy on code to see a snippet derived from my Code sliceTableSummary= "This was a chart of invoices for."> thead> TR>
makes me feel that there are fewer and fewer things I can learn. after one year, I understand that I entered this line and now
I just know how to do it. I often don't know why. until March 15, September. I am lucky to say that. very unrealistically into a foreign company. here I can learn about the East in many fields
West. three months of employment is training. because all foreign companies use English, I am sorry for my English. view their code every day. I learned what I lack every day. new
: stopped$ sudo supervisorctl start hello hello: started$sudo supervisorctl restart hello hello:stopedhello:started
Now the application can be restarted automatically after the system is restarted or crashes for some reason.Nginx
Configure Nginx
$ sudo apt-get install nginx$ sudo /etc/init.d/nginx startCreate an Nginx virtual server to serve Django
Each Nginx virtual server should be/etc/nginx/sites-availableFile description in the directory, in order to make it take effect, you need/etc/nginx/s
Cool experience over Win10 latest Ubuntu 14.10
Prepare to install Ubuntu 14.10
Recently, Ubuntu 14.10 was officially released. This version is codenamed "Utopic Unicorn" (utopia Unicorn ). As one of the world's most popular and influential open-source Linux systems, Ubuntu has been released for ten years. In the past ten years, the Ubuntu operating system has been deprecated, greatly improving the applicati
The hacker types mentioned in this article are typical hacker types. All these types of hackers are talented, but they have obviously different styles. Which of the following are you familiar?
0. The Unicorn
The Unicorn is translated as a "Unicorn", known as a hacker for its perfect developer, they were once thought to be coded like a code stamp and designed w
Solve the Theremoteendhungupunexpectedly error of Gitlab
The Gitlab server environment is CentOS7 + Gitlab7.2.1. Recently, the following error is reported when you use git pull on the development machine to update files.
fatal: The remote end hung up unexpectedlyfatal: early EOFfatal: unpack-objects failed
The use of git clone to re-checkout source is also affected and cannot be checked out for a long time,
Google hasn't found a good solution after half a day, and finally found the error log to
Solve The remote end hung up unexpectedly error of Gitlab, gitlabunexpectedly
The Gitlab server environment is CentOS7 + Gitlab7.2.1. Recently, the following error is reported when you use git pull on the development machine to update files.
fatal: The remote end hung up unexpectedlyfatal: early EOFfatal: unpack-objects failed
The use of git clone to re-checkout source is also affected and cannot be checked out for a long time,
Google hasn't found a good solution after half a day, and finally f
(delta 0)Grouping objects: 100% (603/603), 53.29 KiB, done.Resolving deltas: 100% (174/174), done.Can clone gitolite-admin ?............ YESUMASK for. gitolite. rc is 0007? ... YES/Home/git/share/gitolite/hooks/common/post-receive exists? ... YESIf you got all YES-congratulations! You can go to the next step.5. Start the WEB ServiceApplication can be started with next command:# TestSudo-u gitlab bundle exec rails s-e production# Start as a daemonSudo-u gitlab bundle exec rails s-e production-dU
-shell.git$ cd gitlab-shellUse git tag to view the latest version and switch$ git checkout v1.7.9Modify the configuration file, add your own domain after installation.$ vi config.yml$ ./bin/installGitLab$ cd /home/git$ git clone https://github.com/gitlabhq/gitlabhq.git gitlab$ cd /home/git/gitlab$ git checkout 6-3-stable$ cd /home/git/gitlab$ cp config.yml{.example,}$ vi config/gitlab.yml$ mkdir tmp/pids/$ mkdir tmp/sockets/$ chown -R git log/$ chown -R git tmp/$ chmod -R u+rwX log/$ chmod -R u+
What did the computer do when you browsed my blogTechnical considerations, Computer principlesWhen I was in college, I always had a lot of questions about computers, especially how computers worked, and why it was so powerful that it changed our lives more and more dramatically.With the accumulation of knowledge, OS, process, thread, computer network, web development, a knowledge island in one day finally connected, forming a very clear flow of information.I believe that you, as a reader, will b
example of cycle:
Listing 10. Advanced Text Template cycle label
context = new dojox.dtl.Context({ unplugged: "Torrey" }); template = new dd.Template(" {% cycle 'Hot' 'Diarrhea' unplugged 'Extra' as steakum %} Pocket. {% cycle steakum %} Pocket. {% cycle steakum %} Pocket."); t.is("Hot Pocket. Diarrhea Pocket. Torrey Pocket.", template.render(context));
Here, we use "as steakum" to define a reference for this cycle. In this way, we can reuse this cycle in future code, use "{% cycle steakum
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.