Oct 21~24, 2023【晚秋の贅沢な山旅 PART②】黒部峽谷♡下之廊下|日本北阿爾卑斯山秘境健行+野營+秘湯溫泉 DAY 1(黒部水壩〜下之廊下〜阿曾原溫泉)

圖片
今天是這趟四天三夜秋季山旅的第二天,昨天在信濃大町悠閒度過了半天,今天終於要進入黑部峽谷山區了。原本是預計早上6點15分,要從信濃大町車站前,乘坐第一班巴士前往 扇沢 ,但是旅館客房太溫暖,不小心睡過頭,等到自然醒時,看了手機已經早上6點了。 這時就算再怎麼快速收拾背包衝到車站也趕不上6點15分的巴士了。雖然還有下一班巴士可以搭,但是今天的路程有點遠,得走上20公里,加上紅葉季節,如果太晚抵達露營場,可能會找不到位置紮營,所以我想還是儘早出發比較好。幸好車站前有計程車可以利用,只是必須多花幾千塊日幣消災就是了。 在觀光季節,最早一班由 扇沢 開往 黒部ダム ( 黑部水壩 )的巴士是早上7點30分發車,所以只要需抓個50分鐘的乘車跟買票時間,大概早上6點40分左右,從大町車站前搭上計程車就沒問題了。 洗漱完畢,整理好背包後,將房間鑰匙放回旅館櫃檯的籃子裡,然後走路到車站前面,叫一輛計程車前往 扇沢 (車資大約8000日幣上下)。走在路上可以看見遠處三千公尺級的高山,都已經覆上了新雪,預告著今年的雪季即將到來。 早上7點左右抵達 扇沢 ,買了一張前往 黑部水壩 的單程電氣巴士車票(1,800日幣),然後將登山計畫書投遞進箱子裡,走上二樓排隊等待搭車。果然不愧是紅葉季節,車站二樓裡面,整整四排的排隊區,已經排滿了登山客和觀光客。 扇沢 其實就是 立山黑部阿爾卑斯路線 的長野側起點,是觀光客很喜歡造訪的地方,只是一般觀光客不會曉得,站在黑部水壩頂部欣賞放水時,在那 日本規模第一 的水壩後方之溪谷深處,竟然隱藏著一條少為人知的登山步道。 相關參考連結 下ノ廊下を含む活動日記一覧(YAMAP) 登山ルート情報 - 阿曽原温泉小屋 立山黒部アルペンルート|公式サイト アルピコ交通|路線バス 扇沢線 くろよん(黒部ダム)ーその手に未来をー|関西電力 2021年の番組~最後の秘境・黒部源流紀行【小椋久美子が黒部川の“最初の一滴”を目指す旅】 【下の廊下】黒部峡谷の断崖絶壁を命懸けで歩く(前編) 【下の廊下】落ちたら終わりの絶景登山道(後編) 【テント泊登山】断崖絶壁30kmの道、黒部峡谷の歴史を歩く|旧日電歩道-下ノ廊下-水平歩道 黒部源流と大峡谷( 圖片來源 ) 雖然排隊人潮很多,但是早上7點半準時檢票上車,群眾也非常有秩序和效率的往前進,似乎連一點時間也沒有耽誤到就準時發車了,日...

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!

熱門文章

Mar 2025【桃園大溪】金面山(小百岳 No.021)、金山面山健行|阮家土雞城起登

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

Oct 21~24, 2023【晚秋の贅沢な山旅 PART②】黒部峽谷♡下之廊下|日本北阿爾卑斯山秘境健行+野營+秘湯溫泉 DAY 1(黒部水壩〜下之廊下〜阿曾原溫泉)

2019 Aug 16~18【福建南平】中國世界遺產~福建武夷山遊記。登天遊峰、臨九曲溪、品大紅袍

Sep 2025【新北雙溪】蝙蝠山、苕谷瀑布、百二階古道O形|山頂有360度展望,但之後的路線蜘蛛絲有點多

2019, July 7~8【中國山東】老司機帶你攀登72位古代帝王曾登臨朝拜,以五嶽獨尊名揚天下的泰山(歷史典故+遊覽路線+遊記+照片)

Mar 12, 2022【重機一日遊】走北橫至宜蘭,經梨山、武嶺下埔里,再走台三線回桃園|16小時的半圈環島

Aug 2025【新北金山】循竹子山古道(前段)造訪阿里磅瀑布|陽明山第一大瀑布|冷門山徑

日本の登山の歷史

2019.10.9~13【令和元年の紅葉の山旅へ PART①】秋の贅沢、黒部川の源流へ北アルプス深部を縦走5日間!Day0、Day1(前泊、折立~藥師岳山莊)

文章列表

Contact

名稱

以電子郵件傳送 *

訊息 *