@@ -467,112 +467,112 @@ add_dockerfile_with_renv_heroku <- function(
467
467
... ,
468
468
source_folder
469
469
) {
470
- signal_arg_is_deprecated(
471
- source_folder ,
472
- fun = as.character(sys.call()[[1 ]]),
473
- " source_folder"
474
- )
470
+ signal_arg_is_deprecated(
471
+ source_folder ,
472
+ fun = as.character(sys.call()[[1 ]]),
473
+ " source_folder"
474
+ )
475
475
476
- add_dockerfile_with_renv(
477
- golem_wd = golem_wd ,
478
- lockfile = lockfile ,
479
- output_dir = output_dir ,
480
- distro = distro ,
481
- from = from ,
482
- as = as ,
483
- sysreqs = sysreqs ,
484
- repos = repos ,
485
- expand = expand ,
486
- port = NULL ,
487
- host = " 0.0.0.0" ,
488
- extra_sysreqs = extra_sysreqs ,
489
- update_tar_gz = update_tar_gz ,
490
- open = FALSE ,
491
- document = document ,
492
- user = user ,
493
- single_file = single_file ,
494
- set_golem.app.prod = set_golem.app.prod ,
495
- dockerfile_cmd = sprintf(
496
- " R -e \" options('shiny.port'=$PORT,shiny.host='0.0.0.0');library(%1$s);%1$s::run_app()\" " ,
497
- get_golem_name(
498
- golem_wd = golem_wd
499
- )
500
- ),
501
- ...
502
- )
476
+ add_dockerfile_with_renv(
477
+ golem_wd = golem_wd ,
478
+ lockfile = lockfile ,
479
+ output_dir = output_dir ,
480
+ distro = distro ,
481
+ from = from ,
482
+ as = as ,
483
+ sysreqs = sysreqs ,
484
+ repos = repos ,
485
+ expand = expand ,
486
+ port = NULL ,
487
+ host = " 0.0.0.0" ,
488
+ extra_sysreqs = extra_sysreqs ,
489
+ update_tar_gz = update_tar_gz ,
490
+ open = FALSE ,
491
+ document = document ,
492
+ user = user ,
493
+ single_file = single_file ,
494
+ set_golem.app.prod = set_golem.app.prod ,
495
+ dockerfile_cmd = sprintf(
496
+ " R -e \" options('shiny.port'=$PORT,shiny.host='0.0.0.0');library(%1$s);%1$s::run_app()\" " ,
497
+ get_golem_name(
498
+ golem_wd = golem_wd
499
+ )
500
+ ),
501
+ ...
502
+ )
503
503
504
- apps_h <- gsub(
505
- " \\ ." ,
506
- " -" ,
507
- sprintf(
508
- " %s-%s" ,
509
- get_golem_name(
510
- golem_wd = golem_wd
511
- ),
512
- get_golem_version(
513
- golem_wd = golem_wd
514
- )
515
- )
516
- )
504
+ apps_h <- gsub(
505
+ " \\ ." ,
506
+ " -" ,
507
+ sprintf(
508
+ " %s-%s" ,
509
+ get_golem_name(
510
+ golem_wd = golem_wd
511
+ ),
512
+ get_golem_version(
513
+ golem_wd = golem_wd
514
+ )
515
+ )
516
+ )
517
517
518
- readme_output <- fs_path(
519
- output_dir ,
520
- " README"
521
- )
518
+ readme_output <- fs_path(
519
+ output_dir ,
520
+ " README"
521
+ )
522
522
523
- write_there <- write_there_builder(readme_output )
523
+ write_there <- write_there_builder(readme_output )
524
524
525
- write_there(" From your command line, run:\n " )
525
+ write_there(" From your command line, run:\n " )
526
526
527
- write_there(
528
- sprintf(
529
- " docker build -f Dockerfile_base --progress=plain -t %s ." ,
530
- paste0(
531
- get_golem_name(
532
- golem_wd = golem_wd
533
- ),
534
- " _base"
535
- )
536
- )
537
- )
527
+ write_there(
528
+ sprintf(
529
+ " docker build -f Dockerfile_base --progress=plain -t %s ." ,
530
+ paste0(
531
+ get_golem_name(
532
+ golem_wd = golem_wd
533
+ ),
534
+ " _base"
535
+ )
536
+ )
537
+ )
538
538
539
- write_there(
540
- sprintf(
541
- " docker build -f Dockerfile --progress=plain -t %s .\n " ,
542
- paste0(
543
- get_golem_name(
544
- golem_wd = golem_wd
545
- ),
546
- " :latest"
547
- )
548
- )
549
- )
539
+ write_there(
540
+ sprintf(
541
+ " docker build -f Dockerfile --progress=plain -t %s .\n " ,
542
+ paste0(
543
+ get_golem_name(
544
+ golem_wd = golem_wd
545
+ ),
546
+ " :latest"
547
+ )
548
+ )
549
+ )
550
550
551
- write_there(" Then, to push on heroku:\n " )
551
+ write_there(" Then, to push on heroku:\n " )
552
552
553
- write_there(" heroku container:login" )
554
- write_there(
555
- sprintf(" heroku create %s" , apps_h )
556
- )
557
- write_there(
558
- sprintf(" heroku container:push web --app %s" , apps_h )
559
- )
560
- write_there(
561
- sprintf(" heroku container:release web --app %s" , apps_h )
562
- )
563
- write_there(
564
- sprintf(" heroku open --app %s\n " , apps_h )
565
- )
566
- write_there(" > Be sure to have the heroku CLI installed." )
553
+ write_there(" heroku container:login" )
554
+ write_there(
555
+ sprintf(" heroku create %s" , apps_h )
556
+ )
557
+ write_there(
558
+ sprintf(" heroku container:push web --app %s" , apps_h )
559
+ )
560
+ write_there(
561
+ sprintf(" heroku container:release web --app %s" , apps_h )
562
+ )
563
+ write_there(
564
+ sprintf(" heroku open --app %s\n " , apps_h )
565
+ )
566
+ write_there(" > Be sure to have the heroku CLI installed." )
567
567
568
- write_there(
569
- sprintf(" > You can replace %s with another app name." , apps_h )
570
- )
568
+ write_there(
569
+ sprintf(" > You can replace %s with another app name." , apps_h )
570
+ )
571
571
572
- # The open is deported here just to be sure
573
- # That we open the README once it has been populated
574
- open_or_go_to(
575
- where = readme_output ,
576
- open_file = open
577
- )
572
+ # The open is deported here just to be sure
573
+ # That we open the README once it has been populated
574
+ open_or_go_to(
575
+ where = readme_output ,
576
+ open_file = open
577
+ )
578
578
}
0 commit comments