<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PhpStorm アーカイブ - studioDoghands</title>
	<atom:link href="https://www.doghands.com/tag/phpstorm/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.doghands.com/tag/phpstorm/</link>
	<description>スタジオ・ドッグハンズ-運用しやすいホームーページを制作する会社です。</description>
	<lastBuildDate>Fri, 15 Mar 2024 12:48:26 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.doghands.com/wp-content/uploads/cropped-favicon-1-32x32.png</url>
	<title>PhpStorm アーカイブ - studioDoghands</title>
	<link>https://www.doghands.com/tag/phpstorm/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">58793406</site>	<item>
		<title>PhpStormの自動アップロード機能、除外ファイル設定をコピーして利用する</title>
		<link>https://www.doghands.com/copy-excluded-paths-settings-to-another-project-in-phpstorm/</link>
		
		<dc:creator><![CDATA[hiro]]></dc:creator>
		<pubDate>Mon, 06 Jan 2020 04:33:01 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PhpStorm]]></category>
		<category><![CDATA[UnderStrap]]></category>
		<category><![CDATA[WordPress全般]]></category>
		<guid isPermaLink="false">https://www.doghands.com/?p=12501</guid>

					<description><![CDATA[<p><img width="450" height="191" src="https://www.doghands.com/wp-content/uploads/PhpStorm-20010607-450x191.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" fetchpriority="high" /></p>
<p>PHP開発IDE「PhpStorm」には、ファイルを変更すると自動でFTP接続と該当ファイルのアップロードを行う機能があります。 リモートサーバだけでは無く、ローカルフォルダも対象にすることができます。 まず、 Pref</p>
<p>投稿 <a href="https://www.doghands.com/copy-excluded-paths-settings-to-another-project-in-phpstorm/">PhpStormの自動アップロード機能、除外ファイル設定をコピーして利用する</a> は <a href="https://www.doghands.com">studioDoghands</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[<p><img width="450" height="191" src="https://www.doghands.com/wp-content/uploads/PhpStorm-20010607-450x191.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" /></p><p>PHP開発IDE「PhpStorm」には、ファイルを変更すると自動でFTP接続と該当ファイルのアップロードを行う機能があります。<br />
リモートサーバだけでは無く、ローカルフォルダも対象にすることができます。</p>
<p>まず、<br />
Preferences→Build, Execution, Deployment→Deployment<br />
で接続対象とアカウント、ディレクトリ等を入力（このあたりは通常のFTPソフトと同じです）します。<br />
<img decoding="async" src="https://www.doghands.com/wp-content/uploads/PhpStorm-20010604.jpg" alt="" width="700" height="514" class="alignnone size-full wp-image-12504" /></p>
<p>その後、<br />
Preferences→Build, Execution, Deployment→Deployment→Options<br />
の「Upload changed files automatically to the default server」を「Never」から「Always」か「On explicit save action」に変更します。<br />
<img decoding="async" src="https://www.doghands.com/wp-content/uploads/PhpStorm-20010601.jpg" alt="" width="700" height="514" class="alignnone size-full wp-image-12502" /></p>
<aside>「Always」はファイルの（自動保存含めた）保存時に常にアップロード。<br />
「On explicit save action」は⌘Sで明示的にファイルを保存した時のみアップロードします。<br />
私は「On explicit save action」にしています。<br />
</aside>
<h2>アップロード対象除外ファイルの設定</h2>
<p>この自動アップロード機能では、任意のファイルを対象から外すことができます。<br />
※Filezilla等、多くのFTPソフトでも同様の機能があります。<br />
例えばメモやGit関連、Gulp関連、最終的なCSS以外のSASSファイル等です。</p>
<p>設定はFTPアカウント管理画面の「Excluded Paths」から行います。<br />
例えば私が良く利用するBootstrap4のスターターテーマ「<a href="https://understrap.com/" rel="noopener noreferrer" target="_blank">UnderStrap</a>」の子テーマでは下の画像のようになります。<br />
<img loading="lazy" decoding="async" src="https://www.doghands.com/wp-content/uploads/PhpStorm-20010602.jpg" alt="" width="700" height="514" class="alignnone size-full wp-image-12505" /></p>
<p>さて、この「Excluded Paths」ですが、設定が面倒な割に「複製」や「設定の書き出し」が見当たりません。<br />
実はこれらの情報はプロジェクトフォルダに作成される「.idea」ディレクトリの「deployment.xml」ファイルに記載されています。<br />
※参考:公式サイト「<a href="https://pleiades.io/help/phpstorm/creating-and-managing-projects.html" rel="noopener noreferrer" target="_blank">プロジェクトの作成と管理</a>﻿」</p>
<h3>「.idea」フォルダの確認</h3>
<p>「.idea」ファイルは見ての通り「.（ドット）」から始まるファイルで、多くのMacの設定では「.htaccess」同様、不可視ファイルとして扱われるため、Finderでも表示されません。<br />
不可視フォルダを表示するMacのショートカットキーは「command（⌘）」 + 「shift」 + 「.」です。<br />
これで「.idea」フォルダが表示されます。<br />
<img loading="lazy" decoding="async" src="https://www.doghands.com/wp-content/uploads/PhpStorm-20010606.gif" alt="" width="550" height="134" class="alignnone size-full wp-image-12507" /></p>
<h3>deployment.xmlの確認</h3>
<p>「deployment.xml」をクリックして開きます。<br />
<img loading="lazy" decoding="async" src="https://www.doghands.com/wp-content/uploads/PhpStorm-20010603.jpg" alt="" width="484" height="153" class="alignnone size-full wp-image-12506" /></p>
<p>paths→serverdata→excludedPathsノードに除外ファイルの情報が保存されています。<br />
<img loading="lazy" decoding="async" src="https://www.doghands.com/wp-content/uploads/PhpStorm-20010605.jpg" alt="" width="700" height="380" class="alignnone size-full wp-image-12503" /><br />
これを他のプロジェクトのdeployment.xmlにコピーして利用することが可能です。</p>
<p>投稿 <a href="https://www.doghands.com/copy-excluded-paths-settings-to-another-project-in-phpstorm/">PhpStormの自動アップロード機能、除外ファイル設定をコピーして利用する</a> は <a href="https://www.doghands.com">studioDoghands</a> に最初に表示されました。</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">12501</post-id>	</item>
	</channel>
</rss>
