Sep 2024 晚夏的黑部源流4泊5日山旅 PART ①【溪流登攀&溫泉三昧】赤木沢~五郎沢~祖父沢遡行&雲ノ平~高天原~裏銀座縱走(旅途的開始)

圖片
今年晚夏的山旅,我前往了日本北阿爾卑斯山脈黑部源流域進行為期五天四夜的溪流登攀+登山縱走行程。黑部川源流一帶的山域,雖然過去幾年已造訪過多次,不過這回是第一次在日本進行溪流登攀(日本叫「 沢登り 」),而且是在我特愛的黑部川流域,讓我對黑部源流域有了更進一步的認識。 此行也順路造訪了五年前就計畫要去,但是因爲颱風而沒能去成的「 雲ノ平 」,以及有「 日本第一遠的溫泉 」之稱的秘湯「 高天原溫泉 」泡湯。然後還走了去年因為天氣惡劣而沒能走的「 裏銀座縱走路線 」下山,完成這趟縱橫黑部源流域,總距離50幾公里的溪流登攀和登山旅行。 黑部川 (日語:黒部川/くろべがわ)是日本富山縣東部的一級河川,為黑部川水系的本流,它被列為富山縣的七大河流之一,其他六條河流分別是片貝川、早月川、常願寺川、神通川、莊川和小矢部川。 黑部川 大部分蜿蜒於深山內,形成十分陡峭的黑部峽谷,如果想親身感受黑部峽谷的壯闊,走一趟 下ノ廊下 和 水平步道 ,絕對是畢生難忘的體驗。 下圖為黑部川水系流域的示意圖,從海拔2924米的 鷲羽岳 降下的的最初的一滴水,流經 奧ノ廊下 、 上ノ廊下 、 下ノ廊下 ,並匯聚了黑部山區眾多支流的溪水後,向北奔流而下,然後流入富山灣,最後進入日本海。 下圖是這趟山旅所進行的溪流登攀(沢登り)的區域,包括 赤木沢 、 五郎沢 、 祖父沢 等黑部川支流,主要位於黑部川的源頭,尤其是赤木沢,更有著「 日本第一美溪 」之稱號。 黑部源流…這幾個字對登山者來說有著特殊的魔力。人跡罕至的秘境,峽谷綿延的 上ノ廊下 ,激流沖刷岩石的 下ノ廊下 ,源頭的雲ノ平瑞士庭園等。在這黑部源流的一隅,一條溫柔的小溪緩緩流入。赤木沢與黑部川本流交匯處的絕美景色,展現了大自然鬼斧神工的美麗,在陽光照耀下的溪流和深潭,呈現出豐富的色彩變化,其美景宛如天國一般。 下圖是我這趟五天四夜的山旅,所行經過的整個路線(使用 YAMAP 紀錄),從富山縣的 折立登山口 入山,溯行黑部源流域的多個溪流(黑部川上游的支流),並順訪 雲ノ平 和 高天原溫泉 後,再走 裏銀座縱走路 ,由高瀨湖下山,總距離約53.6公里(不過在 Sports Tracker 上面的紀錄卻是63.3公里,不知道哪個才是正確的)。 這趟山旅的途中,依序住宿 藥師沢小屋 、 黑部五郎小屋 、 雲ノ平山莊 、 水晶小屋 ,這些都是以前沒有住過...

Running PHP application on Heroku (Mac OS X)


Heroku is a very popular PaaS (Platform as a Service) cloud hosting service which allows you to deploy various applications, especially Ruby on Rails application. Heroku doesn't charge anything to sign up and has a free service upto 5 MB usage of PostgreSQL database, that's enough to used for your development environment. Heroku is majorly to Deploy Ruby on Rails, Node.js, Java, Clojure and Django apps, but you can also run any type of app (like PHP).

The PHP support was launched in partnership with Facebook, to attract Facebook application  developers to Heroku's cloud platform (Heroku support PHP). In this post, you will learn how to deploy PHP project on Heroku. I assume that you already signed up with Heroku and configured your SSH keys with Heroku servers. If you haven't done it already, follow these instructions.

You can try it out for yourself by just creating a new project folder with an index.php file in it, then creating a Heroku project. When you push to Heroku, they'll automatically identify it as PHP and compile/install Apache and PHP into your slug.

$ mkdir PROJECT_NAME
$ cd PROJECT_NAME
$ git init
$ git add .
$ git commit -m "Initial commit"

Go to github.com and create a new repository

$ git remote add origin git@github.com:YOUR_USER_NAME/PROJECT_NAME.git
$ git push origin master

Installing the heroku command line client:
If you are using a Mac, install the following version of the heroku command line client (toolbelt). http://toolbelt.herokuapp.com/osx/download

Creating an application on heroku is easy, you just need to run the following command:

$ heroku create PROJECT_NAME --stack cedar

Heroku uses PostgreSQL as its default database but also support MySQL. You can use either Heroku's Postgres-based shared DB storage or a cloud-hosted MySQL like Amazon RDSClearDB MySQL Database or Xeround Cloud DB for your PHP apps on Heroku. (Amazon RDS is a service that allows you to set up, operate and scale a dedicated MySQL database server on top of EC2. You can use Amazon's Relational Database Service (RDS) addon on Heroku.)

$ heroku addons:add shared-database:5mb

Retrieve the database credentials by following command:

$ heroku config

Now, the fun part – push the modified code up to Heroku with git push heroku master:

$ git push heroku master

The output should look something like this:

If you get this error below, make sure the index.php file is under your project folder, and run the command: $ git add .

Setting up database:

I'm familiar with MySQL database, that why I'm choosing ClearDB MySQL database with FREE plan. Run the following command to install the addon:

$ heroku addons:add cleardb:ignite
$ heroku config

$ heroku config:add DATABASE_URL=mysql://db_user:password@db_server/db_schema

How do I import a MySQL dumpfile into the database?

$ mysql -u db_user -p -h db_server db_schema < db_dump_file.sql

Now you can login to mysql server from unix shell or GUI tool (like MySQL Workbench) to check your database.

Finally, you may want to change the database setting in the PHP project. (For this example, I have to configure my config.class.php file)

After that, run the following command:

$ git commit -am "Changed db setting to MySQL"
$ git push heroku master

Congratulations! you've just created your PHP application on Heroku. :)
or just run "$ heroku open"

You can use the "$ heroku logs" command to retrieve this log stream (in streaming mode if you add the –tail options).

Heroku Documentation:


Have fun!

熱門文章

Jul 2025【新北雙溪】十年荒徑重見天日!雙溪二柑O型健行🍊(威惠廟~柑腳城山~柑腳山~崩山坑古道)

Jan 2025【日本東北】溫泉三昧之旅② 在大雪飄落的雪國,追尋秘湯之宿與極上美食(仙台~品嚐極上米澤牛&奧羽的百年藥湯-鎌先溫泉)

Jan 2025【苗栗三義】富貴牡丹(三義館)人文藝術餐廳|預約制|在美術館裡吃無菜單料理

日本の登山の歷史

May 2023【雲林古坑】 負離子濃度達都市40倍/漫步木馬古道/順訪雲嶺之丘/山合苑喝咖啡/秋田犬

Sep 2024 晚夏的黑部源流4泊5日山旅 PART ①【溪流登攀&溫泉三昧】赤木沢~五郎沢~祖父沢遡行&雲ノ平~高天原~裏銀座縱走(旅途的開始)

July 2024【台北士林】陽明山彼端的原始秘境|颱風後的鹿角坑生態保護區|循著疊石指引造訪楓林瀑布

Jun 2025【彰化員林】月光山舍土雞料理景觀餐廳(寵物友善餐廳)|員林藤山步道散步

Dec 2024【苗栗泰安】水雲餐廳溫泉民宿♨️🥢⛰️|水雲三星之橫龍山~騰龍山健行|台中西嶼龍新鮮海鮮古早味餐廳

文章列表

Contact

名稱

以電子郵件傳送 *

訊息 *