{"id":849,"date":"2014-08-07T19:09:58","date_gmt":"2014-08-07T17:09:58","guid":{"rendered":"http:\/\/thomasdt.com\/?p=849"},"modified":"2014-08-07T19:09:58","modified_gmt":"2014-08-07T17:09:58","slug":"a-description-of-my-coding-environment","status":"publish","type":"post","link":"https:\/\/rationalk.ch\/blog\/a-description-of-my-coding-environment\/","title":{"rendered":"A description of my coding environment"},"content":{"rendered":"<h3>The context<\/h3>\n<p>I code simple projects.<br \/>\nLet say that the project is hosted at http:\/\/thomasdt.com\/myproject<br \/>\nMost of the time, I am the only developper. I code from different platform : iPad, Pc and Mac.<\/p>\n<h3>My solution<\/h3>\n<p>I will detail here my coding process<\/p>\n<p>I Use dropbox<br \/>\nI work in a folder myproject_dev inside dropbox folder<br \/>\nThese is where the last version of my development is located<br \/>\nTo edit the file depending on the platform, I use :<\/p>\n<ul>\n<li>Coda on mac (<a title=\"Coda by Panic\" href=\"https:\/\/panic.com\/coda\/\">https:\/\/panic.com\/coda\/<\/a>)<\/li>\n<li>Coda on iPad<\/li>\n<li>Notepad++ on PC<\/li>\n<\/ul>\n<p>I use beanstalkapp (<a title=\"Beanstalkapp\" href=\"http:\/\/beanstalkapp.com\">http:\/\/beanstalkapp.com<\/a>) as my private git repository (a free account is ok)<\/p>\n<p>When I would like to test live my code : I push my dev files from my dev folder to beanstalkapp<\/p>\n<p>beanstalkapp keep a version of all my work help my colleagues to review the code.<\/p>\n<p>beanstalkapp is set up to automatically deploy my dev file to a ftp server.<\/p>\n<p>I use ovh and a public dev folder http:\/\/thomasdt.com\/myproject_dev<\/p>\n<p>This is a php-sql project so :<\/p>\n<ul>\n<li>I maintain a duplicate of the public database<\/li>\n<li>If you are browsing the application through :\n<ul>\n<li>http:\/\/thomasdt.com\/myproject, the php files are pointing to the live database<\/li>\n<li>http:\/\/thomasdt.com\/myproject_dev, the php files are pointing to the test database<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>When I would like to push the dev to the live site. I\u00a0commit my files with the keyword: [deploy: production] and the files are also pushed to the production ftp server.<\/p>\n<p>If I need to alter the sql database structure, I do it in a sql.php file rather than in phpmyadmin. This sql.php file is automatically triggered (like a web hook) by beanstalkapp just before deploying the file to the development and production server.<\/p>\n<h3>Things I could improve<\/h3>\n<ul>\n<li>On windows, I am pushing files to git with Git Bash and this is not optimal. I could find a better IDE with integrated git.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The context I code simple projects. Let say that the project is hosted at http:\/\/thomasdt.com\/myproject Most of the time, I am the only developper. I code from different platform : iPad, Pc and Mac. My solution I will detail here my coding process I Use dropbox I work in a folder myproject_dev inside dropbox folder [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[2,5],"tags":[18,19,45,64],"class_list":["post-849","post","type-post","status-publish","format-standard","hentry","category-dev","category-project-management","tag-coda","tag-code","tag-git","tag-php"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/posts\/849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/comments?post=849"}],"version-history":[{"count":0,"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/posts\/849\/revisions"}],"wp:attachment":[{"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/media?parent=849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/categories?post=849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rationalk.ch\/blog\/wp-json\/wp\/v2\/tags?post=849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}