Re: [WebDNA] Cloud hosting and local development

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114877
interpreted = N
texte = 2505 --Apple-Mail-A11E41BE-6EE3-4466-B718-EA2AA636B79F Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable You would need to flush the dB before replacing on the target server.=20 You could call a script to flush the target just before the dB files are re= placed. The script would need to be in the post-receive hook. I will have a= look at that tomorrow. I have always done dB manually but you have me think= ing now.=20 Regards Stuart Tremain Pharoah Lane Software=20 7/76 Reserve Road=20 Artarmon NSW 2064 AUSTRALIA +612 8971 4431 > On 5 Oct 2019, at 9:18 pm, Tom Duke wrote: >=20 > =EF=BB=BF > Stuart, >=20 > Hi - I only got the chance this morning to properly go through your email.= >=20 > When I tried to implement a git workflow in the past it always fell down a= round the syncing of databases. Particularly if I changed the structure of a= database on the local repository. =20 >=20 > I couldn't figure out a safe way to do that and sync to the dev / live ser= vers. I tried using a mix of Tower and https://beanstalkapp.com/ at the time= .. >=20 > - Tom >=20 >> On Thu, 3 Oct 2019 at 00:18, Stuart Tremain wr= ote: >> Hi Tom >>=20 >> git is not dependant on any language so what you do with WebDNA is no dif= ferent to any other language. >>=20 >> The steps that I achieved to get it running were as follows: >>=20 >> 1. Installed Tower on my Mac - https://www.git-tower.com >>=20 >> 2. I created a copy of the website on my Mac >>=20 >> 3. Set up git on the server >>=20 >> 4. Set up my user on the server with key pair access >>=20 >> 5. Once the tech was in place and key pairs were working I simply created= a repository from my local copy of the website, then created a remote repos= itory on the server, and then using Tower pushed the local repository to th= e remote repository on the server. To test that this was working I backed up= the website on the server and created an empty root directory, git filled t= he empty root dir with the contents of my local repository - this proved to m= e that the system was working. When you try this for yourself do plenty of t= esting before going to a live environment. You may have some issues with per= missions, make sure that the git user on the server is in www-data group, I a= lso set the grid on the root directory chmod -R 2775 /var/www/html=20 >>=20 >> When I finish development on my dev server I use Transmit (https://panic.= com/transmit/) to download all the new/changed files to my local repository t= hen use Tower to send the changes to the website. >>=20 >> I guess I could make git work both ways but I feel more comfortable with t= he ftp flow from dev to local. >>=20 >> Using git is an art in itself and I really only use the basics that are a= vailable. >>=20 >> Here are some links about getting started: >>=20 >> https://www.digitalocean.com/community/questions/ubuntu-16-04-creating-ne= w-user-and-adding-ssh-keys >>=20 >> https://www.digitalocean.com/community/tutorials/how-to-install-git-on-ub= untu-18-04 >>=20 >>=20 >> If you are interested I have some personal notes that I use to set up git= on a new server that suits my way of working. >>=20 >>=20 >> Kind regards >>=20 >> Stuart Tremain >> Pharoah Lane Software >> AUSTRALIA >> webdna@plsoftware.com.au >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>> On 2 Oct 2019, at 23:11, Tom Duke wrote: >>>=20 >>> Stuart, >>>=20 >>> Hi - I would be really interested in finding out more about how you have= integrated version control into your workflow. >>>=20 >>> It's one of the (many) things I have not properly figured out yet with W= ebDNA. I might contact you off list about this if that's ok? >>>=20 >>> I also just wanted to say how much I value your contributions to the lis= t. >>>=20 >>> - Tom >>>=20 >>>=20 >>> --------------------------------------------------------- This message i= s sent to you because you are subscribed to the mailing list talk@webdna.us T= o unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.u= s/page.dna?numero=3D55 Bug Reporting: support@webdna.us >>=20 >> --------------------------------------------------------- This message is= sent to you because you are subscribed to the mailing list talk@webdna.us T= o unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.u= s/page.dna?numero=3D55 Bug Reporting: support@webdna.us > --------------------------------------------------------- This message is s= ent to you because you are subscribed to the mailing list talk@webdna.us To u= nsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/p= age.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail-A11E41BE-6EE3-4466-B718-EA2AA636B79F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable You would need to flush the dB before repla= cing on the target server. 

You could call a script t= o flush the target  just before the dB files are replaced. The script w= ould need to be in the  post-receive hook. I will have a look at that t= omorrow. I have always done dB manually but you have me thinking now. <= br>
Regards
Stuart Tremain

Pharoah Lane Software 
7/76 Reserve Road 
Ar= tarmon NSW 2064
AUSTRALIA
+612 8971 4431
On 5 Oct 2019, at 9:18 pm, Tom Duke <tom@revol= utionaries.ie> wrote:

=EF=BB=BF
Stuart,
Hi - I only got the chance this morning to properly go thro= ugh your email.

When I tried to implement a git wor= kflow in the past it always fell down around the syncing of databases. = Particularly if I changed the structure of a database on the loca= l repository.  

I couldn't figure out a s= afe way to do that and sync to the dev / live servers. I tried using a mix o= f Tower and https://beanstalkapp.= com/ at the time.

- Tom

On Thu, 3 Oct= 2019 at 00:18, Stuart Tremain <webdna@plsoftware.com.au> wrote:
Hi Tom

git is not dependant on any language so what you do with WebDNA is no d= ifferent to any other language.

The steps that I ac= hieved to get it running were as follows:

1. Instal= led Tower on my Mac - https://www.git-tower.com

2. I created a= copy of the website on my Mac

3. Set up git on the= server

4. Set up my user on the server with key pa= ir access

5. Once the tech was in place and key pai= rs were working I simply created a repository from my local copy of the webs= ite, then created a remote repository  on the server, and then using To= wer pushed the local repository to the remote repository on the server. To t= est that this was working I backed up the website on the server and created a= n empty root directory, git filled the empty root dir with the contents of m= y local repository - this proved to me that the system was working. When you= try this for yourself do plenty of testing before going to a live environme= nt. You may have some issues with permissions, make sure that the git user o= n the server is in www-data group, I also set the grid on the root directory= chmod -R 2775 /var/www/html 

When I finish de= velopment on my dev server I use Transmit (https://panic.com/transmit/) to download all th= e new/changed files to my local repository then use Tower to send the change= s to the website.

I guess I could make git work bot= h ways but I feel more comfortable with the ftp flow from dev to local.

Using git is an art in itself and I really only use the= basics that are available.

Here  are some lin= ks about getting started:



=

If you are interested I have some personal notes that I u= se to set up git on a new server that suits my way of working.

Kind regards
<= br>
Stuart Tremain
Pharoah Lane Software
AUSTR= ALIA






On 2 Oct 2019, at 23:11, Tom Duke &l= t;tom@revolution= aries.ie> wrote:

Stua= rt,

Hi - I would be really interested in finding out= more about how you have integrated version control into your work= flow.

It's one of the (many) things I have not prop= erly figured out yet with WebDNA.  I might contact you off list about t= his if that's ok?

I also just wanted to say how muc= h I value your contributions to the list.

- To= m


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@we= bdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppor= t@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@we= bdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppor= t@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us
= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail-A11E41BE-6EE3-4466-B718-EA2AA636B79F-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Cloud hosting and local development (Stuart Tremain 2019)
  2. Re: [WebDNA] Cloud hosting and local development (Tom Duke 2019)
  3. Re: [WebDNA] Cloud hosting and local development (Tom Duke 2019)
  4. Re: [WebDNA] Cloud hosting and local development (Stuart Tremain 2019)
  5. Re: [WebDNA] Cloud hosting and local development (Paul Willis 2019)
  6. Re: [WebDNA] Cloud hosting and local development (Bob Minor 2019)
  7. Re: [WebDNA] Cloud hosting and local development (Tom Duke 2019)
  8. Re: [WebDNA] Cloud hosting and local development (Brian Harrington 2019)
  9. Re: [WebDNA] Cloud hosting and local development (Tom Duke 2019)
  10. Re: [WebDNA] Cloud hosting and local development (Brian Harrington 2019)
2505 --Apple-Mail-A11E41BE-6EE3-4466-B718-EA2AA636B79F Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable You would need to flush the dB before replacing on the target server.=20 You could call a script to flush the target just before the dB files are re= placed. The script would need to be in the post-receive hook. I will have a= look at that tomorrow. I have always done dB manually but you have me think= ing now.=20 Regards Stuart Tremain Pharoah Lane Software=20 7/76 Reserve Road=20 Artarmon NSW 2064 AUSTRALIA +612 8971 4431 > On 5 Oct 2019, at 9:18 pm, Tom Duke wrote: >=20 > =EF=BB=BF > Stuart, >=20 > Hi - I only got the chance this morning to properly go through your email.= >=20 > When I tried to implement a git workflow in the past it always fell down a= round the syncing of databases. Particularly if I changed the structure of a= database on the local repository. =20 >=20 > I couldn't figure out a safe way to do that and sync to the dev / live ser= vers. I tried using a mix of Tower and https://beanstalkapp.com/ at the time= .. >=20 > - Tom >=20 >> On Thu, 3 Oct 2019 at 00:18, Stuart Tremain wr= ote: >> Hi Tom >>=20 >> git is not dependant on any language so what you do with WebDNA is no dif= ferent to any other language. >>=20 >> The steps that I achieved to get it running were as follows: >>=20 >> 1. Installed Tower on my Mac - https://www.git-tower.com >>=20 >> 2. I created a copy of the website on my Mac >>=20 >> 3. Set up git on the server >>=20 >> 4. Set up my user on the server with key pair access >>=20 >> 5. Once the tech was in place and key pairs were working I simply created= a repository from my local copy of the website, then created a remote repos= itory on the server, and then using Tower pushed the local repository to th= e remote repository on the server. To test that this was working I backed up= the website on the server and created an empty root directory, git filled t= he empty root dir with the contents of my local repository - this proved to m= e that the system was working. When you try this for yourself do plenty of t= esting before going to a live environment. You may have some issues with per= missions, make sure that the git user on the server is in www-data group, I a= lso set the grid on the root directory chmod -R 2775 /var/www/html=20 >>=20 >> When I finish development on my dev server I use Transmit (https://panic.= com/transmit/) to download all the new/changed files to my local repository t= hen use Tower to send the changes to the website. >>=20 >> I guess I could make git work both ways but I feel more comfortable with t= he ftp flow from dev to local. >>=20 >> Using git is an art in itself and I really only use the basics that are a= vailable. >>=20 >> Here are some links about getting started: >>=20 >> https://www.digitalocean.com/community/questions/ubuntu-16-04-creating-ne= w-user-and-adding-ssh-keys >>=20 >> https://www.digitalocean.com/community/tutorials/how-to-install-git-on-ub= untu-18-04 >>=20 >>=20 >> If you are interested I have some personal notes that I use to set up git= on a new server that suits my way of working. >>=20 >>=20 >> Kind regards >>=20 >> Stuart Tremain >> Pharoah Lane Software >> AUSTRALIA >> webdna@plsoftware.com.au >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>> On 2 Oct 2019, at 23:11, Tom Duke wrote: >>>=20 >>> Stuart, >>>=20 >>> Hi - I would be really interested in finding out more about how you have= integrated version control into your workflow. >>>=20 >>> It's one of the (many) things I have not properly figured out yet with W= ebDNA. I might contact you off list about this if that's ok? >>>=20 >>> I also just wanted to say how much I value your contributions to the lis= t. >>>=20 >>> - Tom >>>=20 >>>=20 >>> --------------------------------------------------------- This message i= s sent to you because you are subscribed to the mailing list talk@webdna.us T= o unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.u= s/page.dna?numero=3D55 Bug Reporting: support@webdna.us >>=20 >> --------------------------------------------------------- This message is= sent to you because you are subscribed to the mailing list talk@webdna.us T= o unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.u= s/page.dna?numero=3D55 Bug Reporting: support@webdna.us > --------------------------------------------------------- This message is s= ent to you because you are subscribed to the mailing list talk@webdna.us To u= nsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/p= age.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail-A11E41BE-6EE3-4466-B718-EA2AA636B79F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable You would need to flush the dB before repla= cing on the target server. 

You could call a script t= o flush the target  just before the dB files are replaced. The script w= ould need to be in the  post-receive hook. I will have a look at that t= omorrow. I have always done dB manually but you have me thinking now. <= br>
Regards
Stuart Tremain

Pharoah Lane Software 
7/76 Reserve Road 
Ar= tarmon NSW 2064
AUSTRALIA
+612 8971 4431
On 5 Oct 2019, at 9:18 pm, Tom Duke <tom@revol= utionaries.ie> wrote:

=EF=BB=BF
Stuart,
Hi - I only got the chance this morning to properly go thro= ugh your email.

When I tried to implement a git wor= kflow in the past it always fell down around the syncing of databases. = Particularly if I changed the structure of a database on the loca= l repository.  

I couldn't figure out a s= afe way to do that and sync to the dev / live servers. I tried using a mix o= f Tower and https://beanstalkapp.= com/ at the time.

- Tom

On Thu, 3 Oct= 2019 at 00:18, Stuart Tremain <webdna@plsoftware.com.au> wrote:
Hi Tom

git is not dependant on any language so what you do with WebDNA is no d= ifferent to any other language.

The steps that I ac= hieved to get it running were as follows:

1. Instal= led Tower on my Mac - https://www.git-tower.com

2. I created a= copy of the website on my Mac

3. Set up git on the= server

4. Set up my user on the server with key pa= ir access

5. Once the tech was in place and key pai= rs were working I simply created a repository from my local copy of the webs= ite, then created a remote repository  on the server, and then using To= wer pushed the local repository to the remote repository on the server. To t= est that this was working I backed up the website on the server and created a= n empty root directory, git filled the empty root dir with the contents of m= y local repository - this proved to me that the system was working. When you= try this for yourself do plenty of testing before going to a live environme= nt. You may have some issues with permissions, make sure that the git user o= n the server is in www-data group, I also set the grid on the root directory= chmod -R 2775 /var/www/html 

When I finish de= velopment on my dev server I use Transmit (https://panic.com/transmit/) to download all th= e new/changed files to my local repository then use Tower to send the change= s to the website.

I guess I could make git work bot= h ways but I feel more comfortable with the ftp flow from dev to local.

Using git is an art in itself and I really only use the= basics that are available.

Here  are some lin= ks about getting started:



=

If you are interested I have some personal notes that I u= se to set up git on a new server that suits my way of working.

Kind regards
<= br>
Stuart Tremain
Pharoah Lane Software
AUSTR= ALIA






On 2 Oct 2019, at 23:11, Tom Duke &l= t;tom@revolution= aries.ie> wrote:

Stua= rt,

Hi - I would be really interested in finding out= more about how you have integrated version control into your work= flow.

It's one of the (many) things I have not prop= erly figured out yet with WebDNA.  I might contact you off list about t= his if that's ok?

I also just wanted to say how muc= h I value your contributions to the list.

- To= m


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@we= bdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppor= t@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@we= bdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppor= t@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us
= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail-A11E41BE-6EE3-4466-B718-EA2AA636B79F-- . Stuart Tremain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Location of Browser Info.txt file (1997) Shopping with Accounts (2003) Firesite Round 2 (1999) different show next (1997) Assigning new CART number (1997) Extracting a Word (2000) Separate SSL Server (1997) Great product and great job ! (1997) Who is doing sign-ups-got it (1998) Thanks Grant (1997) Editing only the price field in the database (1998) Determining Method (2000) Error Lob.db records error message not name (1997) converchars in sendmail context.... (2004) [WebDNA] Friday Fun with Variable Names (2017) Problem displaying search result (1997) Showif for mulitple variations (1997) Shipping Calc - done (1998) problem 'building' field names (2000) Country & Ship-to address & other fields ? (1997)