Skip to content

Commit

Permalink
add new line at the end of the Procfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jul 15, 2024
1 parent 62e8bf3 commit 03988a8
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion apache/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn setup() -> Result<String, Error> {
.with_exec(vec!["[ -f httpd.conf ] || wget https://raw.githubusercontent.com/fluentci-io/services/main/apache/httpd.conf"])?
.with_exec(vec!["[ -f ../index.html ] || wget https://raw.githubusercontent.com/fluentci-io/services/main/apache/web/index.html -O ../index.html"])?
.with_exec(vec![
"grep -q web Procfile || echo 'web: apachectl start -f $PWD/httpd.conf -D FOREGROUND' >> Procfile",
"grep -q web Procfile || echo -e 'web: apachectl start -f $PWD/httpd.conf -D FOREGROUND\\n' >> Procfile",
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion caddy/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub fn setup() -> Result<String, Error> {
.with_exec(vec!["[ -f ../Caddyfile ] || wget https://raw.githubusercontent.com/fluentci-io/services/main/caddy/Caddyfile -O ../Caddyfile"])?
.with_exec(vec!["[ -f ../index.html ] || wget https://raw.githubusercontent.com/fluentci-io/services/main/caddy/web/index.html -O ../index.html"])?
.with_exec(vec![
&format!("grep -q caddy Procfile || echo 'caddy: cd .. && caddy run {}' >> Procfile", opts),
&format!("grep -q caddy Procfile || echo -e 'caddy: cd .. && caddy run {}\\n' >> Procfile", opts),
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion dragonflydb/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn setup() -> Result<String, Error> {
.with_workdir(".fluentci")?
.with_exec(vec!["flox", "install", "docker", "overmind", "tmux"])?
.with_exec(vec![
"grep -q dragonflydb Procfile || echo 'dragonflydb: docker run -p $DRAGONFLY_PORT:6379 --ulimit memlock=-1 docker.dragonflydb.io/dragonflydb/dragonfly' >> Procfile",
"grep -q dragonflydb Procfile || echo -e 'dragonflydb: docker run -p $DRAGONFLY_PORT:6379 --ulimit memlock=-1 docker.dragonflydb.io/dragonflydb/dragonfly\\n' >> Procfile",
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion httpbin/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn setup() -> Result<String, Error> {
"flox", "install", "python312Packages.httpbin", "python312Packages.gunicorn", "python312Packages.gevent", "overmind", "tmux", "curl",
])?
.with_exec(vec![
"grep -q httpin Procfile || echo 'httpbin: gunicorn httpbin:app -k gevent -b 127.0.0.1:$HTTPBIN_PORT' >> Procfile",
"grep -q httpin Procfile || echo -e 'httpbin: gunicorn httpbin:app -k gevent -b 127.0.0.1:$HTTPBIN_PORT\\n' >> Procfile",
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion mariadb/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub fn setup() -> Result<String, Error> {
.with_exec(vec!["touch ~/.my.cnf"])?
.with_exec(vec!["[ -d $MYSQL_DATADIR/sys ] || flox activate -- mysql_install_db --auth-root-authentication-method=normal --user=`whoami` --datadir=$MYSQL_DATADIR --pid-file=$MYSQL_HOME/mysql.pid --defaults-file=~/.my.cnf"])?
.with_exec(vec![
"grep -q mariadb Procfile || echo 'mariadb: mysqld --datadir=$MYSQL_DATADIR --log-error=$MYSQL_HOME/mysql.log --port=$MYSQL_PORT --socket=$MYSQL_HOME/mysql.socket --user=`whoami`' >> Procfile",
"grep -q mariadb Procfile || echo -e 'mariadb: mysqld --datadir=$MYSQL_DATADIR --log-error=$MYSQL_HOME/mysql.log --port=$MYSQL_PORT --socket=$MYSQL_HOME/mysql.socket --user=`whoami`\\n' >> Procfile",
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion meilisearch/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn setup() -> Result<String, Error> {
.with_workdir(".fluentci")?
.with_exec(vec!["flox", "install", "meilisearch", "overmind", "tmux"])?
.with_exec(vec![
"grep -q meilisearch Procfile || echo 'meilisearch: meilisearch' >> Procfile",
"grep -q meilisearch Procfile || echo -e 'meilisearch: meilisearch\\n' >> Procfile",
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion mongodb/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn setup() -> Result<String, Error> {
"overmind", "tmux"
])?
.with_exec(vec![
"grep -q mongodb Procfile || echo 'mongodb: pkgx +docker.com/cli docker run -v $MONGODB_DATA_DIR:/data/db -p $MONGODB_PORT:27017 mongo:$MONGODB_VERSION' >> Procfile",
"grep -q mongodb Procfile || echo -e 'mongodb: pkgx +docker.com/cli docker run -v $MONGODB_DATA_DIR:/data/db -p $MONGODB_PORT:27017 mongo:$MONGODB_VERSION\\n' >> Procfile",
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion mysql/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub fn setup() -> Result<String, Error> {
.with_exec(vec!["[ -d $MYSQL_DATADIR ] || mkdir -p $MYSQL_DATADIR"])?
.with_exec(vec!["[ -f $MYSQL_DATADIR/ca.pem ] || flox activate -- mysqld --initialize-insecure --datadir=$MYSQL_DATADIR --log-error=$MYSQL_HOME/mysql.log"])?
.with_exec(vec![
"grep -q mysql Procfile || echo 'mysql: mysqld --datadir=$MYSQL_DATADIR --log-error=$MYSQL_HOME/mysql.log --port=$MYSQL_PORT --socket=$MYSQL_HOME/mysql.socket --user=`whoami`' >> Procfile",
"grep -q mysql Procfile || echo -e 'mysql: mysqld --datadir=$MYSQL_DATADIR --log-error=$MYSQL_HOME/mysql.log --port=$MYSQL_PORT --socket=$MYSQL_HOME/mysql.socket --user=`whoami`\\n' >> Procfile",
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion nginx/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub fn setup() -> Result<String, Error> {
.with_exec(vec!["[ -f ../nginx.template ] && envsubst < ../nginx.template > nginx.conf"])?
.with_exec(vec!["cat nginx.conf"])?
.with_exec(vec![
"grep -q nginx Procfile || echo 'nginx: nginx -p $PWD -c $PWD/nginx.conf -e error.log -g \"pid nginx.pid;daemon off;\"' >> Procfile",
"grep -q nginx Procfile || echo -e 'nginx: nginx -p $PWD -c $PWD/nginx.conf -e error.log -g \"pid nginx.pid;daemon off;\"\\n' >> Procfile",
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion php/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ pub fn setup() -> Result<String, Error> {
.with_exec(vec!["rm -rf ../vendor && mv vendor .."])?
.with_exec(vec!["[ -f ../php-fpm.conf ] || wget https://raw.githubusercontent.com/fluentci-io/services/main/php/php-fpm.conf -O ../php-fpm.conf"])?
.with_exec(vec![
"grep -q php-fpm Procfile || echo 'php-fpm: php-fpm -y ../php-fpm.conf --nodaemonize' >> Procfile",
"grep -q php-fpm Procfile || echo -e 'php-fpm: php-fpm -y ../php-fpm.conf --nodaemonize\\n' >> Procfile",
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion postgres/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub fn setup() -> Result<String, Error> {
"[ -f $PGDATA/postgresql.conf ] || flox activate -- initdb",
])?
.with_exec(vec![
"grep -q postgres Procfile || echo 'postgres: postgres -k $PWD -h $PGHOST -i' >> Procfile",
"grep -q postgres Procfile || echo -e 'postgres: postgres -k $PWD -h $PGHOST -i\\n' >> Procfile",
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion rabbitmq/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn setup() -> Result<String, Error> {
.with_workdir(".fluentci")?
.with_packages(vec!["rabbitmq.com", "overmind", "tmux"])?
.with_exec(vec![
"grep -q rabbitmq Procfile || echo 'rabbitmq: rabbitmq-server' >> Procfile",
"grep -q rabbitmq Procfile || echo -e 'rabbitmq: rabbitmq-server\\n' >> Procfile",
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion redis/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub fn setup() -> Result<String, Error> {
"github.com/tmux/tmux",
])?
.with_exec(vec![
"grep -q redis Procfile || echo 'redis: redis-server' >> Procfile",
"grep -q redis Procfile || echo -e 'redis: redis-server\\n' >> Procfile",
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion temporal/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub fn setup() -> Result<String, Error> {
.with_workdir(".fluentci")?
.with_packages(vec!["temporal", "overmind", "tmux"])?
.with_exec(vec![
&format!("grep -q temporal Procfile || echo 'temporal: temporal server start-dev --log-format=pretty --port=$TEMPORAL_PORT {}' >> Procfile", temporal_opts),
&format!("grep -q temporal Procfile || echo -e 'temporal: temporal server start-dev --log-format=pretty --port=$TEMPORAL_PORT {}\\n' >> Procfile", temporal_opts),
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion typesense/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub fn setup() -> Result<String, Error> {
.with_exec(vec!["[ -d $TYPESENSE_DATA_DIR ] || mkdir -p $TYPESENSE_DATA_DIR"])?
.with_exec(vec!["flox", "install", "typesense", "overmind", "tmux"])?
.with_exec(vec![
"grep -q typesense Procfile || echo 'typesense: typesense-server --data-dir $TYPESENSE_DATA_DIR --api-key $TYPESENSE_API_KEY --api-host $TYPESENSE_API_HOST --api-port $TYPESENSE_API_PORT' >> Procfile",
"grep -q typesense Procfile || echo -e 'typesense: typesense-server --data-dir $TYPESENSE_DATA_DIR --api-key $TYPESENSE_API_KEY --api-host $TYPESENSE_API_HOST --api-port $TYPESENSE_API_PORT\\n' >> Procfile",
])?
.stdout()?;

Expand Down

0 comments on commit 03988a8

Please sign in to comment.